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

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

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

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

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