EntryWasUpdated::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
3
namespace Hechoenlaravel\JarvisFoundation\Entries\Events;
4
5
use Hechoenlaravel\JarvisFoundation\Events\Event;
6
use Hechoenlaravel\JarvisFoundation\EntityGenerator\EntityModel;
7
8
/**
9
 * Class EntryWasUpdated
10
 * @package Hechoenlaravel\JarvisFoundation\Entries\Events
11
 */
12
class EntryWasUpdated extends Event
13
{
14
    /**
15
     * @var EntityModel
16
     */
17
    public $entity;
18
19
    /**
20
     * @var
21
     */
22
    public $entry_id;
23
24
    /**
25
     *
26
     * @var
27
     */
28
    public $data;
29
30
    /**
31
     * @param EntityModel $entity
32
     * @param $entry
33
     */
34
    public function __construct(EntityModel $entity, $entry_id, $data)
35
    {
36
        $this->entity = $entity;
37
        $this->entry_id = $entry_id;
38
        $this->data = $data;
39
    }
40
}
41