| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 15 | class PropertyLookupException extends EntityLookupException { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param PropertyId $propertyId |
||
| 19 | * @param string|null $message |
||
| 20 | * @param Exception|null $previous |
||
| 21 | 1 | */ |
|
| 22 | 1 | public function __construct( PropertyId $propertyId, $message = null, ?Exception $previous = null ) { |
|
| 23 | 1 | parent::__construct( |
|
| 24 | 1 | $propertyId, |
|
| 25 | $message ?: 'Property lookup failed for: ' . $propertyId, |
||
| 26 | 1 | $previous |
|
| 27 | 1 | ); |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return PropertyId |
||
| 32 | 1 | */ |
|
| 33 | 1 | public function getPropertyId() { |
|
| 39 | } |
||
| 40 | |||
| 42 |