You are here

trait ResourceObjectToEntityMapperAwareTrait in JSON:API Resources 8

Trait which provides the resource object to entity mapper.

@internal

Hierarchy

File

src/Unstable/Entity/ResourceObjectToEntityMapperAwareTrait.php, line 10

Namespace

Drupal\jsonapi_resources\Unstable\Entity
View source
trait ResourceObjectToEntityMapperAwareTrait {

  /**
   * The service which created an entity from a resource object.
   *
   * @var \Drupal\jsonapi_resources\Unstable\Entity\ResourceObjectToEntityMapper
   */
  private $resourceObjectToEntityMapper;

  /**
   * {@inheritdoc}
   *
   * @see \Drupal\jsonapi_resources\Unstable\Entity\ResourceObjectToEntityMapperAwareInterface::setResourceObjectToEntityMapper()
   */
  public function setResourceObjectToEntityMapper(ResourceObjectToEntityMapper $mapper) {
    $this->resourceObjectToEntityMapper = $mapper;
  }

}

Members