Completed
Push — master ( 381b4d...e69b5e )
by Nicolas
02:32
created

PostWasDeleted::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php namespace Modules\Blog\Events;
2
3
use Modules\Media\Contracts\DeletingMedia;
4
5
class PostWasDeleted implements DeletingMedia
6
{
7
    /**
8
     * @var string
9
     */
10
    private $postClass;
11
    /**
12
     * @var int
13
     */
14
    private $postId;
15
16
    public function __construct($postId, $postClass)
17
    {
18
        $this->postClass = $postClass;
19
        $this->postId = $postId;
20
    }
21
22
    /**
23
     * Get the entity ID
24
     * @return int
25
     */
26
    public function getEntityId()
27
    {
28
        return $this->postId;
29
    }
30
31
    /**
32
     * Get the class name the imageables
33
     * @return string
34
     */
35
    public function getClassName()
36
    {
37
        return $this->postClass;
38
    }
39
}
40