public function ban(int $id): PodiumResponse
    {
        $memberBanner = $this->getBanisher($id);

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

        return $memberBanner->ban();
    }
public function ban(int $id): PodiumResponse
    {
        $memberBanner = $this->getBanisher($id);

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

        return $memberBanner->ban();
    }
public function ban ( int $ id ) : PodiumResponse { $ memberBanner = $ this -> getBanisher ( $ id ) ; if ( $ memberBanner === null ) { throw new ModelNotFoundException ( 'Member of given ID can not be found.' ) ; } return $ memberBanner -> ban ( ) ; }
Bans member.
@param int $id
@return PodiumResponse
@throws ModelNotFoundException
Bans member .