PHP 인터페이스 Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface

파일 보기 프로젝트 열기: neomerx/json-api 0 사용 예제들

공개 메소드들

메소드 설명
getAttributes ( ) : array Get resource attributes.
getId ( ) : string Get resource ID.
getIncludedResourceLinks ( ) : array Get links related to resource when it is in 'included' section.
getInclusionMeta ( ) : array | object | null Get meta-information about resource object.
getLinkageMeta ( ) : array | object | null Get meta-information about resource object.
getPrimaryMeta ( ) : array | object | null Get meta-information about resource object.
getRelationshipsInclusionMeta ( ) : array | object | null Get meta-information about resource relationships when resource is included.
getRelationshipsPrimaryMeta ( ) : array | object | null Get meta-information about resource relationships when resource is primary.
getResourceLinks ( ) : array Get links related to resource.
getSelfSubLink ( ) : Neomerx\JsonApi\Contracts\Document\LinkInterface Get resource 'self' endpoint URL.
getType ( ) : string Get resource type.
isInArray ( ) : boolean If original data we part of an array of elements.
isShowAttributesInIncluded ( ) : boolean If resource attributes should be shown when the resource is within 'included'.

메소드 상세

getAttributes() 공개 메소드

Get resource attributes.
public getAttributes ( ) : array
리턴 array

getId() 공개 메소드

Get resource ID.
public getId ( ) : string
리턴 string

getInclusionMeta() 공개 메소드

Get meta-information about resource object.
public getInclusionMeta ( ) : array | object | null
리턴 array | object | null

getLinkageMeta() 공개 메소드

Get meta-information about resource object.
public getLinkageMeta ( ) : array | object | null
리턴 array | object | null

getPrimaryMeta() 공개 메소드

Get meta-information about resource object.
public getPrimaryMeta ( ) : array | object | null
리턴 array | object | null

getRelationshipsInclusionMeta() 공개 메소드

Get meta-information about resource relationships when resource is included.

getRelationshipsPrimaryMeta() 공개 메소드

Get meta-information about resource relationships when resource is primary.

getType() 공개 메소드

Get resource type.
public getType ( ) : string
리턴 string

isInArray() 공개 메소드

If original data we part of an array of elements.
public isInArray ( ) : boolean
리턴 boolean

isShowAttributesInIncluded() 공개 메소드

If resource attributes should be shown when the resource is within 'included'.