$name
$name :
API parameter object used with service descriptions
__construct(array $data = array(), \Guzzle\Service\Description\ServiceDescriptionInterface $description = null)
Create a new Parameter using an associative array of data. The array can contain the following information: - name: (string) Unique name of the parameter - type: (string|array) Type of variable (string, number, integer, boolean, object, array, numeric, null, any). Types are using for validation and determining the structure of a parameter. You can use a union type by providing an array of simple types. If one of the union types matches the provided value, then the value is valid.
array | $data | Array of data as seen in service descriptions |
\Guzzle\Service\Description\ServiceDescriptionInterface | $description | Service description used to resolve models if $ref tags are found |
getData(string|null $name = null) : array|mixed|null
Retrieve a known property from the parameter by name or a data property by name. When not specific name value is specified, all data properties will be returned.
string|null | $name | Specify a particular property name to retrieve |
setData(string|array|null $nameOrData, mixed|null $data = null) : self
Set the extra data properties of the parameter or set a specific extra property
string|array|null | $nameOrData | The name of a specific extra to set or an array of extras to set |
mixed|null | $data | When setting a specific extra property, specify the data to set for it |
getParent() : \Guzzle\Service\Description\OperationInterface|\Guzzle\Service\Description\Parameter|null
Get the parent object (an {@see OperationInterface} or {@see Parameter}
setParent(\Guzzle\Service\Description\OperationInterface|\Guzzle\Service\Description\Parameter|null $parent) : self
Set the parent object of the parameter
\Guzzle\Service\Description\OperationInterface|\Guzzle\Service\Description\Parameter|null | $parent | Parent container of the parameter |
getProperty(string $name) : null|\Guzzle\Service\Description\Parameter
Get a specific property from the parameter
string | $name | Name of the property to retrieve |
addProperty(\Guzzle\Service\Description\Parameter $property) : self
Add a property to the parameter
\Guzzle\Service\Description\Parameter | $property | Properties to set |
getAdditionalProperties() : boolean|\Guzzle\Service\Description\Parameter|null
Get the additionalProperties value of the parameter
setAdditionalProperties(boolean|\Guzzle\Service\Description\Parameter|null $additional) : self
Set the additionalProperties value of the parameter
boolean|\Guzzle\Service\Description\Parameter|null | $additional | Boolean to allow any, an Parameter to specify a schema, or false to disallow |
setItems(\Guzzle\Service\Description\Parameter|null $items = null) : self
Set the items data of the parameter
\Guzzle\Service\Description\Parameter|null | $items | Items to set |
getItems() : \Guzzle\Service\Description\Parameter|null
Get the item data of the parameter