Neomerx\JsonApi\Document\Document::addEmptyRelationshipToData PHP Méthode

addEmptyRelationshipToData() public méthode

public addEmptyRelationshipToData ( Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $parent, Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface $relationship )
$parent Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface
$relationship Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface
    public function addEmptyRelationshipToData(ResourceObjectInterface $parent, RelationshipObjectInterface $relationship)
    {
        $this->presenter->setRelationshipTo($this->bufferForData, $parent, $relationship, []);
    }