| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | trait ValidatorTrait |
||
| 6 | { |
||
| 7 | protected $name; |
||
| 8 | |||
| 9 | protected $message; |
||
| 10 | |||
| 11 | protected $required; |
||
| 12 | |||
| 13 | public function __construct($name, $required = false) |
||
| 14 | { |
||
| 15 | $this->name = $name; |
||
| 16 | $this->required = $required; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getName() |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getMessage() |
||
| 25 | { |
||
| 26 | return $this->message; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function isRequired() |
||
| 32 | } |
||
| 33 | } |
||
| 34 |