model) { return $this->model; } throw new NotFoundException(__("The %1 wasn't registered.", $this->modelName)); } /** * @inheritDoc */ public function getStore(): StoreInterface { if (null !== $this->store) { return $this->store; } throw new NotFoundException(__("The store wasn't registered. Verify the store and try again.")); } /** * @inheritDoc */ public function setModel(AbstractExtensibleModel $model): LocatorInterface { $this->model = $model; return $this; } /** * @inheritDoc */ public function setStore(StoreInterface $store): LocatorInterface { $this->store = $store; return $this; } }