public function move(int $id, ModelInterface $forum): PodiumResponse
    {
        $threadMover = $this->getMover($id);

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

        $threadMover->prepareForum($forum);

        return $threadMover->move();
    }
public function move(int $id, ModelInterface $forum): PodiumResponse
    {
        $threadMover = $this->getMover($id);

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

        $threadMover->prepareForum($forum);

        return $threadMover->move();
    }
public function move ( int $ id , ModelInterface $ forum ) : PodiumResponse { $ threadMover = $ this -> getMover ( $ id ) ; if ( $ threadMover === null ) { throw new ModelNotFoundException ( 'Thread of given ID can not be found.' ) ; } $ threadMover -> prepareForum ( $ forum ) ; return $ threadMover -> move ( ) ; }
Moves thread.
@param int $id
@param ModelInterface $forum
@return PodiumResponse
@throws ModelNotFoundException
Moves thread .