프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$data | Tobscure\JsonApi\ElementInterface | The data object. | |
$errors | array | The errors array. | |
$included | array | The included array. | |
$jsonapi | array | The jsonapi array. |
메소드 | 설명 | |
---|---|---|
__construct ( Tobscure\JsonApi\ElementInterface $data = null ) | ||
__toString ( ) : string | Map to string. | |
jsonSerialize ( ) : array | Serialize for JSON usage. | |
setData ( Tobscure\JsonApi\ElementInterface $element ) | Set the data object. | |
setErrors ( array $errors ) | Set the errors array. | |
setJsonapi ( array $jsonapi ) | Set the jsonapi array. | |
toArray ( ) : array | Map everything to arrays. |
메소드 | 설명 | |
---|---|---|
getIncluded ( Tobscure\JsonApi\ElementInterface $element, boolean $includeParent = false ) : |
Get included resources. | |
mergeResource ( array $resources, |
public __construct ( Tobscure\JsonApi\ElementInterface $data = null ) | ||
$data | Tobscure\JsonApi\ElementInterface |
protected getIncluded ( Tobscure\JsonApi\ElementInterface $element, boolean $includeParent = false ) : |
||
$element | Tobscure\JsonApi\ElementInterface | |
$includeParent | boolean | |
리턴 |
protected mergeResource ( array $resources, |
||
$resources | array | |
$newResource | ||
리턴 |
public setData ( Tobscure\JsonApi\ElementInterface $element ) | ||
$element | Tobscure\JsonApi\ElementInterface |
protected ElementInterface,Tobscure\JsonApi $data | ||
리턴 | Tobscure\JsonApi\ElementInterface |