public function hasGrantType($grantType)
    {
        $grants = explode(',', $this->Grants);

        return !empty($grants) && in_array($grantType, $grants);
    }
public function hasGrantType($grantType)
    {
        $grants = explode(',', $this->Grants);

        return !empty($grants) && in_array($grantType, $grants);
    }
public function hasGrantType ( $ grantType ) { $ grants = explode ( ',' , $ this -> Grants ) ; return ! empty ( $ grants ) && in_array ( $ grantType , $ grants ) ; }
Checks whether this ClientEntity has the given grant type.

@param string $grantType The grant type to check.

@return boolean
Checks whether this ClientEntity has the given grant type .