123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- declare(strict_types = 1);
- namespace Drupal\materio_graphql\Wrappers\Response;
- use Drupal\Core\Entity\EntityInterface;
- use Drupal\graphql\GraphQL\Response\Response;
- /**
- * Type of response used when an materiau is returned.
- */
- class MateriauResponse extends Response {
- /**
- * The materiau to be served.
- *
- * @var \Drupal\Core\Entity\EntityInterface|null
- */
- protected $materiau;
- /**
- * Sets the content.
- *
- * @param \Drupal\Core\Entity\EntityInterface|null $materiau
- * The materiau to be served.
- */
- public function setMateriau(?EntityInterface $materiau): void {
- $this->materiau = $materiau;
- }
- /**
- * Gets the materiau to be served.
- *
- * @return \Drupal\Core\Entity\EntityInterface|null
- * The materiau to be served.
- */
- public function materiau(): ?EntityInterface {
- return $this->materiau;
- }
- }
|