Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | trait SpecificationTrait |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $name; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $message; |
||
16 | |||
17 | /** |
||
18 | * @var bool |
||
19 | */ |
||
20 | protected $required; |
||
21 | |||
22 | public function __construct($name, $required = false) |
||
23 | { |
||
24 | $this->name = $name; |
||
25 | $this->required = $required; |
||
26 | } |
||
27 | |||
28 | public function getName() |
||
29 | { |
||
30 | return $this->name; |
||
31 | } |
||
32 | |||
33 | public function getMessage() |
||
34 | { |
||
35 | return $this->message; |
||
36 | } |
||
37 | |||
38 | public function isRequired() |
||
41 | } |
||
42 | } |
||
43 |