| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait ValidatorAwareTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Validator instance. |
||
| 14 | * |
||
| 15 | * @var ValidatorInterface |
||
| 16 | */ |
||
| 17 | protected $validator; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Sets validator. |
||
| 21 | * |
||
| 22 | * @param ValidatorInterface $validator |
||
| 23 | * |
||
| 24 | * @return $this |
||
| 25 | */ |
||
| 26 | public function setValidator(ValidatorInterface $validator) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Performs validation. |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function validate() |
||
| 43 |