for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is a part of graphql-youshido project.
*
* @author Alexandr Viniychuk <[email protected]>
* created: 12/1/15 1:22 AM
*/
namespace Youshido\GraphQL\Type\Config\Object;
use Youshido\GraphQL\Type\Field\Field;
use Youshido\GraphQL\Type\TypeMap;
class NonNullTypeConfig extends ObjectTypeConfig
{
public function getRules()
return [
'item' => ['type' => TypeMap::TYPE_OBJECT_TYPE, 'required' => true],
];
}
/**
* @return ObjectTypeConfig
public function getItemConfig()
return $this->getItem()->getConfig();
public function getItem()
return $this->get('item');