FieldWasEdited   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\FieldGenerator\Events;
4
5
use Hechoenlaravel\JarvisFoundation\Events\Event;
6
use Hechoenlaravel\JarvisFoundation\FieldGenerator\FieldModel;
7
8
/**
9
 * Class FieldWasEdited
10
 * @package Hechoenlaravel\JarvisFoundation\FieldGenerator\Events
11
 */
12
class FieldWasEdited extends Event
13
{
14
    /**
15
     * Field generated
16
     * @var
17
     */
18
    public $field;
19
20
    /**
21
     * @var bool
22
     */
23
    public $rename = false;
24
25
    /**
26
     * Old Slug
27
     */
28
    public $oldSlug;
29
30
    /**
31
     * The model created
32
     * @param FieldModel $model
33
     */
34
    public function __construct(FieldModel $model, $rename, $oldSlug = "")
35
    {
36
        $this->field = $model;
37
        $this->rename = $rename;
38
        $this->oldSlug = $oldSlug;
39
    }
40
}
41