EntryWasUpdated   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 29
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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