Youshido\GraphQL\Field\Field::getName PHP Method

getName() public method

public getName ( )
    public function getName()
    {
        return $this->_nameCache ? $this->_nameCache : ($this->_nameCache = $this->getConfigValue('name'));
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @param Field                 $intField
  * @param Field                 $objField
  * @param AbstractInterfaceType $interface
  *
  * @return bool
  *
  * @throws ConfigurationException
  */
 protected function assertFieldsIdentical($intField, $objField, AbstractInterfaceType $interface)
 {
     $isValid = true;
     if ($intField->getType()->isCompositeType() !== $objField->getType()->isCompositeType()) {
         $isValid = false;
     }
     if ($intField->getType()->getNamedType()->getName() != $objField->getType()->getNamedType()->getName()) {
         $isValid = false;
     }
     if (!$isValid) {
         throw new ConfigurationException(sprintf('Implementation of %s is invalid for the field %s', $interface->getName(), $objField->getName()));
     }
 }
All Usage Examples Of Youshido\GraphQL\Field\Field::getName