Auth_OpenID_AX_KeyValueMessage::get PHP Метод

get() публичный Метод

XXX: what to do if the values are not present? default parameter? this is funny because it's always supposed to return a list, so the default may break that, though it's provided by the user's code, so it might be okay. If no default is supplied, should the return be None or []?
public get ( $type_uri )
    function get($type_uri)
    {
        if (array_key_exists($type_uri, $this->data)) {
            return $this->data[$type_uri];
        } else {
            return new Auth_OpenID_AX_Error(sprintf("Type URI %s not found in response", $type_uri));
        }
    }