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 $definition |
||
24 | * @param mixed $value |
||
25 | */ |
||
26 | 6 | public function __construct(Attribute $definition, $value) |
|
38 | |||
39 | /** |
||
40 | * Get definition of attribute caused the issue |
||
41 | * |
||
42 | * @return Attribute |
||
43 | */ |
||
44 | public function getDefinition(): Attribute |
||
48 | |||
49 | /** |
||
50 | * Resolve description of value's type |
||
51 | * |
||
52 | * @param $value |
||
53 | * @return string |
||
54 | */ |
||
55 | 6 | protected function resolveTypeDescription($value): string |
|
69 | } |