Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| AccessError | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace LDC\LDCCRM\Exceptions; |
| 4 | |
| 5 | /** |
| 6 | * This is thrown when trying to set a value on an object property that does not exist. |
| 7 | * |
| 8 | * @package LDCCrmClient |
| 9 | * @subpackage exceptions |
| 10 | */ |
| 11 | class AccessError extends \Error |
| 12 | { |
| 13 | /** |
| 14 | * AccessError |
| 15 | * |
| 16 | * @param string $objectName The object name where the property does not exist. |
| 17 | * @param string $propertyName The property name that does not exist. |
| 18 | */ |
| 19 | public function __construct(string $objectName, string $propertyName) |
| 20 | { |
| 21 | parent::__construct("Tried to set value in $objectName->$propertyName, it does not exists."); |
| 22 | } |
| 23 | } |