Passed
Push — develop ( 605aab...b17d99 )
by Stone
06:54 queued 11s
created

AbstractVideoEvent::getEntity()   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\Video;
4
5
use App\Entity\AbstractAppEntity;
6
use App\Entity\Trick;
7
use App\Entity\Video;
8
use App\Event\AbstractAppEvent;
9
10
abstract class AbstractVideoEvent extends AbstractAppEvent
11
{
12
    const NAME = 'user.defineMe';
13
14
    /**
15
     * @var Video
16
     */
17
    protected $entity;
18
19
    /**
20
     * @var Trick
21
     */
22
    protected $trick;
23
24
    public function __construct(Video $image, Trick $trick)
25
    {
26
        $this->entity = $image;
27
        $this->trick = $trick;
28
    }
29
30
    /**
31
     * @return Video
32
     */
33
    public function getEntity(): AbstractAppEntity
34
    {
35
        return $this->entity;
36
    }
37
38
    public function getTrick(): Trick
39
    {
40
        return $this->trick;
41
    }
42
}