Youshido\GraphQL\Type\Object\AbstractObjectType::getConfig PHP Method

getConfig() public method

public getConfig ( )
    public function getConfig()
    {
        if (!$this->isBuilt) {
            $this->isBuilt = true;
            $this->build($this->config);
        }
        return $this->config;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @param AbstractObjectType $type
  *
  * @throws ConfigurationException
  */
 protected function assertInterfaceImplementationCorrect(AbstractObjectType $type)
 {
     if (!$type->getInterfaces()) {
         return;
     }
     foreach ($type->getInterfaces() as $interface) {
         foreach ($interface->getConfig()->getFields() as $intField) {
             $this->assertFieldsIdentical($intField, $type->getConfig()->getField($intField->getName()), $interface);
         }
     }
 }