| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class SheetCollectionNotFoundException extends RuntimeException implements ProvidesSolution |
||
| 11 | { |
||
| 12 | /** @var string */ |
||
| 13 | protected $collection; |
||
| 14 | |||
| 15 | 3 | public static function make(string $collection, ?RuntimeException $exception = null): self |
|
| 16 | { |
||
| 17 | 3 | return (new static("Sheet collection [{$collection}] does not exist.", 0, $exception))->setCollection($collection); |
|
| 18 | } |
||
| 19 | |||
| 20 | 2 | public function getCollection(): string |
|
| 21 | { |
||
| 22 | 2 | return $this->collection; |
|
| 23 | } |
||
| 24 | |||
| 25 | 3 | public function setCollection(string $collection): self |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function getSolution(): Solution |
|
| 38 | ]); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |