| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class NotFoundRecord extends Exception |
||
| 6 | { |
||
| 7 | public $attributes = null; |
||
| 8 | public $modelClass = null; |
||
| 9 | 1 | public function getLogMessage() { |
|
| 10 | 1 | $label = $this->getModelLabel(); |
|
| 11 | 1 | $attributes = []; |
|
| 12 | 1 | foreach ($this->attributes as $key => $attribute) { |
|
| 13 | 1 | $attributes[] = $key . '=' . $attribute; |
|
| 14 | } |
||
| 15 | |||
| 16 | 1 | return $label . ' with attributes ' . implode(', ', $attributes) . ' not found'; |
|
| 17 | } |
||
| 18 | |||
| 19 | 1 | public function getLogCategory() { |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | 2 | protected function getModelLabel() |
|
| 30 | } |
||
| 31 | } |