public setRelationshipTo ( array &$target, Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $parent, Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface $relation, mixed $value ) : void | ||
$target | array | |
$parent | Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface | |
$relation | Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface | |
$value | mixed | |
return | void |
/** * @inheritdoc */ public function addNullRelationshipToIncluded(ResourceObjectInterface $parent, RelationshipObjectInterface $relationship) { $this->presenter->setRelationshipTo($this->bufferForIncluded, $parent, $relationship, null); }