EditFieldCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 81
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 81
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php
2
3
namespace Hechoenlaravel\JarvisFoundation\FieldGenerator;
4
5
/**
6
 * Class EditFieldGeneratorCommand
7
 * @package Hechoenlaravel\JarvisFoundation\FieldGenerator
8
 */
9
class EditFieldCommand
10
{
11
    /**
12
     * The field Id
13
     * @var
14
     */
15
    public $id;
16
17
    /**
18
     * the field name
19
     * @var
20
     */
21
    public $name;
22
23
    /**
24
     * The field description
25
     * @var
26
     */
27
    public $description;
28
29
    /**
30
     * the field Slug
31
     * @var
32
     */
33
    public $slug;
34
35
    /**
36
     * is the field locked? meaning cant be removed
37
     * @var
38
     */
39
    public $locked;
40
41
    /**
42
     * what is the fieldtype
43
     * @var
44
     */
45
    public $type;
46
47
    /**
48
     * is the field required?
49
     * @var
50
     */
51
    public $required;
52
53
    /**
54
     * The field options
55
     * @var
56
     */
57
    public $options;
58
59
    /**
60
     * The field default value
61
     * @var
62
     */
63
    public $default;
64
65
66
    /**
67
     * @param $id
68
     * @param string $name
69
     * @param string $description
70
     * @param bool $required
71
     * @param array $options
72
     * @param null $default
73
     */
74
    public function __construct(
75
        $id,
76
        $name = "",
77
        $description = "",
78
        $required = false,
79
        $options = [],
80
        $default = null
81
    ) {
82
        $this->id = $id;
83
        $this->name = $name;
84
        $this->description = $description;
85
        $this->required = $required;
86
        $this->options = $options;
87
        $this->default = $default;
88
    }
89
}
90