Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | abstract class Event implements EventContract |
||
12 | { |
||
13 | use SerializesModels; |
||
|
|||
14 | |||
15 | /** |
||
16 | * @var Trackable |
||
17 | */ |
||
18 | protected $trackable; |
||
19 | |||
20 | /** |
||
21 | * Event constructor. |
||
22 | * |
||
23 | * @param Trackable $trackable |
||
24 | */ |
||
25 | public function __construct(Trackable $trackable) |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return mixed|Trackable Usually a Trackable implementation. |
||
32 | * However it may return an unexpected type if \Illuminate\Queue\SerializesModels trait |
||
33 | * is used by subclass. |
||
34 | * |
||
35 | * @see \Illuminate\Queue\SerializesModels |
||
36 | * @see \Illuminate\Contracts\Database\ModelIdentifier |
||
37 | */ |
||
38 | public function getTrackable() |
||
43 |