PHP 클래스 WoohooLabs\Yin\JsonApi\Hydrator\Relationship\ToManyRelationship

파일 보기 프로젝트 열기: woohoolabs/yin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$resourceIdentifiers WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier[]

공개 메소드들

메소드 설명
__construct ( array $resourceIdentifiers = [] )
addResourceIdentifier ( ResourceIdentifier $resourceIdentifier )
getResourceIdentifierIds ( ) : array
getResourceIdentifierTypes ( ) : array
getResourceIdentifiers ( ) : ResourceIdentifier[]
isEmpty ( ) : boolean Returns true if this relationship is empty, not containing a resource identifier This will be the case when the request want to clear a relationship and sends an empty array as data.

메소드 상세

__construct() 공개 메소드

public __construct ( array $resourceIdentifiers = [] )
$resourceIdentifiers array

addResourceIdentifier() 공개 메소드

public addResourceIdentifier ( ResourceIdentifier $resourceIdentifier )
$resourceIdentifier WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier

getResourceIdentifierIds() 공개 메소드

public getResourceIdentifierIds ( ) : array
리턴 array

getResourceIdentifierTypes() 공개 메소드

public getResourceIdentifierTypes ( ) : array
리턴 array

getResourceIdentifiers() 공개 메소드

public getResourceIdentifiers ( ) : ResourceIdentifier[]
리턴 WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier[]

isEmpty() 공개 메소드

Returns true if this relationship is empty, not containing a resource identifier This will be the case when the request want to clear a relationship and sends an empty array as data.
public isEmpty ( ) : boolean
리턴 boolean

프로퍼티 상세

$resourceIdentifiers 보호되어 있는 프로퍼티

protected ResourceIdentifier[],WoohooLabs\Yin\JsonApi\Schema $resourceIdentifiers
리턴 WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier[]