| @@ 127-134 (lines=8) @@ | ||
| 124 | /** | |
| 125 | * @throws \LogicException | |
| 126 | */ | |
| 127 | private function jsonSerializableOrException() | |
| 128 |     { | |
| 129 |         if (!$this->model instanceof \JsonSerializable) { | |
| 130 | throw new \LogicException( | |
| 131 |                 sprintf('Model %s does not implement %s', get_class($this->model), \JsonSerializable::class) | |
| 132 | ); | |
| 133 | } | |
| 134 | } | |
| 135 | } | |
| 136 | ||
| @@ 74-81 (lines=8) @@ | ||
| 71 | /** | |
| 72 | * @throws \LogicException | |
| 73 | */ | |
| 74 | private function jsonSerializableOrException() | |
| 75 |     { | |
| 76 |         if (!$this->model instanceof \JsonSerializable) { | |
| 77 | throw new \LogicException( | |
| 78 |                 sprintf('Model %s does not implement %s', get_class($this->model), \JsonSerializable::class) | |
| 79 | ); | |
| 80 | } | |
| 81 | } | |
| 82 | } | |
| 83 | ||