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

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

Protected Properties

Свойство Type Description
$resourceIdentifier WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier | null

Méthodes publiques

Méthode Description
__construct ( ResourceIdentifier $resourceIdentifier = null )
getResourceIdentifier ( ) : ResourceIdentifier | null
isEmpty ( ) : boolean Returns true if this relationship is empty, not containing a resource identifier.
setResourceIdentifier ( ResourceIdentifier $resourceIdentifier )

Method Details

__construct() public méthode

public __construct ( ResourceIdentifier $resourceIdentifier = null )
$resourceIdentifier WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier

getResourceIdentifier() public méthode

public getResourceIdentifier ( ) : ResourceIdentifier | null
Résultat WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier | null $resourceIdentifier

isEmpty() public méthode

This will be the case when the request wants to clear a relationship and sends null as data.
public isEmpty ( ) : boolean
Résultat boolean

setResourceIdentifier() public méthode

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

Property Details

$resourceIdentifier protected_oe property

protected ResourceIdentifier,WoohooLabs\Yin\JsonApi\Schema|null $resourceIdentifier
Résultat WoohooLabs\Yin\JsonApi\Schema\ResourceIdentifier | null