Property | Type | Description | |
---|---|---|---|
$id | string |
Property | Type | Description | |
---|---|---|---|
$args | Arguments for fetching this model's information | ||
$attributes | object | ||
$url | The URL at which to fetch this model's information |
Method | Description | |
---|---|---|
__construct ( object $attributes = null, array $options = [] ) | Object constructor | |
fetch ( array $args = [] ) : |
Fetches this object from Pantheon | |
get ( string $attribute ) : mixed | Retrieves attribute of given name | |
getUrl ( ) : string | Get the URL for this model | |
has ( string $attribute ) : boolean | Checks whether the model has an attribute | |
set ( string $attribute, mixed $value ) | Sets an attribute |
Method | Description | |
---|---|---|
parseAttributes ( object $data ) : object | Modify response data between fetch and assignment |
public __construct ( object $attributes = null, array $options = [] ) | ||
$attributes | object | Attributes of this model |
$options | array | Options with which to configure this model |
protected parseAttributes ( object $data ) : object | ||
$data | object | attributes received from API response |
return | object | $data |