1 | <?php |
||
13 | class AttributeNotFoundException extends DocumentException |
||
14 | { |
||
15 | /** |
||
16 | * Name of not found attribute |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $name; |
||
21 | |||
22 | /** |
||
23 | * Resource inside of which an attribute has not been found |
||
24 | * |
||
25 | * @var ResourceObject |
||
26 | */ |
||
27 | protected $resource; |
||
28 | |||
29 | /** |
||
30 | * AttributeNotFoundException constructor. |
||
31 | * |
||
32 | * @param ResourceObject $resource |
||
33 | * @param string $name |
||
34 | * @param \Exception|null $previous |
||
35 | */ |
||
36 | 2 | public function __construct(ResourceObject $resource, string $name, \Exception $previous = null) |
|
45 | |||
46 | /** |
||
47 | * Get name of not found attribute |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | 1 | public function getName(): string |
|
55 | |||
56 | /** |
||
57 | * Get resource inside of which an attribute has not been found |
||
58 | * |
||
59 | * @return ResourceObject |
||
60 | */ |
||
61 | 1 | public function getResource(): ResourceObject |
|
65 | } |