for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Astrotomic\Stancy\Exceptions;
use Astrotomic\Stancy\Solutions\AddSheetToCollectionSolution;
use Facade\IgnitionContracts\ProvidesSolution;
use Facade\IgnitionContracts\Solution;
use RuntimeException;
class SheetNotFoundException extends RuntimeException implements ProvidesSolution
{
/** @var string */
protected $collection;
protected $sheet;
public static function make(string $collection, string $path): self
return (new static("Sheet [{$path}] in collection [{$collection}] does not exist."))->setCollection($collection)->setSheet($path);
}
public function getCollection(): string
return $this->collection;
public function setCollection(string $collection): self
$this->collection = $collection;
return $this;
public function getSheet(): string
return $this->sheet;
public function setSheet(string $sheet): self
$this->sheet = $sheet;
public function getSolution(): Solution
return new AddSheetToCollectionSolution($this->getCollection(), $this->getSheet());