| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait ContextAwareTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var ValidationContext |
||
| 11 | */ |
||
| 12 | protected $context; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return ValidationContext |
||
| 16 | */ |
||
| 17 | public function getContext(): ValidationContext |
||
| 18 | { |
||
| 19 | return $this->context; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param ValidationContext $context |
||
| 24 | * @return $this |
||
| 25 | */ |
||
| 26 | public function setContext(ValidationContext $context) |
||
| 30 | } |
||
| 31 | } |
||
| 32 |