League\FactoryMuffin\Stores\RepositoryStore::__construct PHP Method

__construct() public method

Create a new repository store instance.
public __construct ( object $storage, string | null $saveMethod = null, string | null $deleteMethod = null, $flushMethod = null ) : void
$storage object
$saveMethod string | null
$deleteMethod string | null
return void
    public function __construct($storage, $saveMethod = null, $deleteMethod = null, $flushMethod = null)
    {
        $this->storage = $storage;
        $this->methods = ['save' => $saveMethod ?: 'persist', 'delete' => $deleteMethod ?: 'remove', 'flush' => $flushMethod ?: 'flush'];
    }