Test Failed
Push — develop ( c35c51...0616cb )
by Stone
04:36 queued 10s
created

ImageEvent::getTrick()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Event\Image;
4
5
use App\Entity\AppEntity;
6
7
use App\Entity\Image;
8
use App\Entity\Trick;
9
use App\Event\AppEvent;
10
11
abstract class ImageEvent extends AppEvent
12
{
13
    const NAME = 'user.defineMe';
14
15
    /**
16
     * @var Image
17
     */
18
    protected $entity;
19
20
    /**
21
     * @var Trick
22
     */
23
    protected $trick;
24
25
    public function __construct(Image $image, Trick $trick)
26
    {
27
        $this->entity = $image;
28
        $this->trick = $trick;
29
    }
30
31
    /**
32
     * @return Image
33
     */
34
    public function getEntity(): AppEntity
35
    {
36
        return $this->entity;
37
    }
38
39
    public function getTrick(): Trick
40
    {
41
        return $this->trick;
42
    }
43
}