public function archive(int $id): PodiumResponse
    {
        $categoryArchiver = $this->getArchiver($id);

        if ($categoryArchiver === null) {
            throw new ModelNotFoundException('Category of given ID can not be found.');
        }

        return $categoryArchiver->archive();
    }
public function archive(int $id): PodiumResponse
    {
        $categoryArchiver = $this->getArchiver($id);

        if ($categoryArchiver === null) {
            throw new ModelNotFoundException('Category of given ID can not be found.');
        }

        return $categoryArchiver->archive();
    }
public function archive ( int $ id ) : PodiumResponse { $ categoryArchiver = $ this -> getArchiver ( $ id ) ; if ( $ categoryArchiver === null ) { throw new ModelNotFoundException ( 'Category of given ID can not be found.' ) ; } return $ categoryArchiver -> archive ( ) ; }
Archives category.
@param int $id
@return PodiumResponse
@throws ModelNotFoundException
Archives category .