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

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

        $postMover->prepareThread($thread);

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

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

        $postMover->prepareThread($thread);

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