Neomerx\JsonApi\Document\Document::addEmptyRelationshipToIncluded PHP Method

addEmptyRelationshipToIncluded() public method

public addEmptyRelationshipToIncluded ( 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 addEmptyRelationshipToIncluded(ResourceObjectInterface $parent, RelationshipObjectInterface $relationship)
    {
        $this->presenter->setRelationshipTo($this->bufferForIncluded, $parent, $relationship, []);
    }