addRelationshipTo() публичный Метод

public addRelationshipTo ( array &$target, Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $parent, Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface $relation, Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $resource ) : void
$target array
$parent Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface
$relation Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface
$resource Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface
Результат void
Пример #1
0
 /**
  * @inheritdoc
  */
 public function addRelationshipToIncluded(ResourceObjectInterface $parent, RelationshipObjectInterface $relationship, ResourceObjectInterface $resource)
 {
     $this->presenter->addRelationshipTo($this->bufferForIncluded, $parent, $relationship, $resource);
 }