public function hasFlagsOfType($type)
    {
        if ($this->flags === null) {
            return false;
        }

        foreach ($this->flags as $flag) {
            if ($flag->type == $type) {
                return true;
            }
        }

        return false;
    }
public function hasFlagsOfType($type)
    {
        if ($this->flags === null) {
            return false;
        }

        foreach ($this->flags as $flag) {
            if ($flag->type == $type) {
                return true;
            }
        }

        return false;
    }
public function hasFlagsOfType ( $ type ) { if ( $ this -> flags === null ) { return false ; } foreach ( $ this -> flags as $ flag ) { if ( $ flag -> type == $ type ) { return true ; } } return false ; }
Returns whether or not this address has any flags of type.
@param string $type The flag type you're looking for. Will be one of the Flag::TYPE_* constants.
@return boolean
Returns whether or not this address has any flags of type .