public function __construct(DatabaseStorageInterface $storage, $id = null, $eventDispatcher = null) { $this->reset()->setStorage($storage)->setId($id)->setEventDispatcher($eventDispatcher ?? EventDispatcher::getGlobal()); }
public function __construct(RouterInterface $router, EnvironmentInterface $environment, EventDispatcherInterface $eventDisptacher = null) { $this->setRouter($router)->setEnvironment($environment)->setEventDispatcher($eventDisptacher ?? EventDispatcher::getGlobal()); }
public function __construct(DatabaseStorageInterface $storage, array $models, $eventDispatcher = null) { $this->reset()->setStorage($storage)->setModels($models)->setEventDispatcher($eventDispatcher ?? EventDispatcher::getGlobal()); }
public function __construct(string $name, bool $canQueue = true, bool $canRevert = false, EventDispatcherInterface $eventDispatcher = null) { $this->setName($name)->setCanQueue($canQueue)->setCanRevert($canRevert)->setEventDispatcher($eventDispatcher ?? EventDispatcher::getGlobal()); }