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

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

        $forumMover->prepareCategory($category);

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

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

        $forumMover->prepareCategory($category);

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