Ojs\ApiBundle\Controller\Admin\PeriodRestController::getOr404 PHP Метод

getOr404() защищенный Метод

Fetch a Period or throw an 404 Exception.
protected getOr404 ( mixed $id ) : Period
$id mixed
Результат Ojs\JournalBundle\Entity\Period
    protected function getOr404($id)
    {
        if (!($entity = $this->container->get('ojs_api.period.handler')->get($id))) {
            throw new NotFoundHttpException(sprintf('The resource \'%s\' was not found.', $id));
        }
        return $entity;
    }