PHP Class WoohooLabs\Yin\JsonApi\Hydrator\Relationship\ToManyRelationship

Afficher le fichier Open project: woohoolabs/yin Class Usage Examples

Protected Properties

Свойство Type Description
$resourceIdentifiers WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier[]

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

addResourceIdentifier() public méthode

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

getResourceIdentifierIds() public méthode

public getResourceIdentifierIds ( ) : array
Résultat array

getResourceIdentifierTypes() public méthode

public getResourceIdentifierTypes ( ) : array
Résultat array

getResourceIdentifiers() public méthode

public getResourceIdentifiers ( ) : ResourceIdentifier[]
Résultat WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier[]

isEmpty() public méthode

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
Résultat boolean

Property Details

$resourceIdentifiers protected_oe property

protected ResourceIdentifier[],WoohooLabs\Yin\JsonApi\Schema $resourceIdentifiers
Résultat WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier[]