public function appendAttribute($attr, $value, $type, $metadata = null, $options = []) {
        $attrs = [
            $attr => [
                "value" => $value,
                "type" => $type
            ]
        ];

        if ($metadata != null) {
            $attrs['metadata'] = $metadata;
        }
        return $this->appendAttributes($attrs, $options);
    }
public function appendAttribute($attr, $value, $type, $metadata = null, $options = []) {
        $attrs = [
            $attr => [
                "value" => $value,
                "type" => $type
            ]
        ];

        if ($metadata != null) {
            $attrs['metadata'] = $metadata;
        }
        return $this->appendAttributes($attrs, $options);
    }
public function appendAttribute ( $ attr , $ value , $ type , $ metadata = null , $ options = [ ] ) { $ attrs = [ $ attr => [ "value" => $ value , "type" => $ type ] ] ; if ( $ metadata != null ) { $ attrs [ 'metadata' ] = $ metadata ; } return $ this -> appendAttributes ( $ attrs , $ options ) ; }
Update or Append new attribute
@param mixed $attr
@param mixed $value
@param mixed $metadata
@return \Orion\Utils\HttpRequest
Update or Append new attribute