Property | Type | Description | |
---|---|---|---|
$data | Tobscure\JsonApi\ElementInterface | null | The data object. |
Method | Description | |
---|---|---|
__construct ( Tobscure\JsonApi\ElementInterface $data = null ) | Create a new relationship. | |
getData ( ) : Tobscure\JsonApi\ElementInterface | null | Get the data object. | |
setData ( Tobscure\JsonApi\ElementInterface | null $data ) | Set the data object. | |
toArray ( ) : array | Map everything to an array. |
public __construct ( Tobscure\JsonApi\ElementInterface $data = null ) | ||
$data | Tobscure\JsonApi\ElementInterface |
protected ElementInterface,Tobscure\JsonApi|null $data | ||
return | Tobscure\JsonApi\ElementInterface | null |