for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*******************************************************************************
* This file is part of the GraphQL Bundle package.
*
* (c) YnloUltratech <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
namespace Ynlo\GraphQLBundle\Definition;
use Ynlo\GraphQLBundle\Definition\Traits\ClassAwareDefinitionTrait;
use Ynlo\GraphQLBundle\Definition\Traits\DefinitionTrait;
use Ynlo\GraphQLBundle\Definition\Traits\FieldsAwareDefinitionTrait;
use Ynlo\GraphQLBundle\Definition\Traits\ObjectDefinitionTrait;
/**
* Class ObjectDefinition
*/
class ObjectDefinition implements ObjectDefinitionInterface, NodeAwareDefinitionInterface
{
use DefinitionTrait;
use FieldsAwareDefinitionTrait;
use ClassAwareDefinitionTrait;
use ObjectDefinitionTrait;
* @var string[]
protected $interfaces = [];
* @return string[]
public function getInterfaces(): array
return $this->interfaces;
}
* @param string $name
public function addInterface(string $name)
$this->interfaces[] = $name;
* {@inheritDoc}
public function setNode(?string $node): NodeAwareDefinitionInterface
$this->setClass($node);
return $this;
public function getNode(): ?string
return $this->getClass();