public function remove(int $id): PodiumResponse
    {
        $categoryRemover = $this->getRemover($id);

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

        return $categoryRemover->remove();
    }
public function remove(int $id): PodiumResponse
    {
        $categoryRemover = $this->getRemover($id);

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

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