Passed
Push — develop ( b04746...16c6cc )
by Stone
04:31
created

TrickEvent::__construct()   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 1
1
<?php
2
3
namespace App\Event\Trick;
4
5
use App\Entity\AppEntity;
6
7
use App\Entity\Trick;
8
use App\Event\AppEvent;
9
10
abstract class TrickEvent extends AppEvent
11
{
12
    const NAME = 'user.defineMe';
13
14
    /**
15
     * @var Trick
16
     */
17
    protected $entity;
18
19
    public function __construct(Trick $trick)
20
    {
21
        $this->entity = $trick;
22
    }
23
24
    /**
25
     * @return Trick
26
     */
27
    public function getEntity(): AppEntity
28
    {
29
        return $this->entity;
30
    }
31
}