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