1 | <?php |
||
13 | class NotIterableAttribute extends MappingHandlerException |
||
14 | { |
||
15 | /** |
||
16 | * @var Attribute |
||
17 | */ |
||
18 | protected $definition; |
||
19 | |||
20 | /** |
||
21 | * NotIterableAttribute constructor. |
||
22 | * |
||
23 | * @param Attribute $attribute |
||
24 | * @param mixed $value |
||
25 | */ |
||
26 | 1 | public function __construct(Attribute $attribute, $value) |
|
36 | |||
37 | /** |
||
38 | * Get definition of attribute caused the issue |
||
39 | * |
||
40 | * @return Attribute |
||
41 | */ |
||
42 | public function getDefinition(): Attribute |
||
46 | |||
47 | /** |
||
48 | * Resolve description of value's type |
||
49 | * |
||
50 | * @param $value |
||
51 | * @return string |
||
52 | */ |
||
53 | 1 | protected function resolveTypeDescription($value): string |
|
67 | } |