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 11:28 PM
*/
namespace Youshido\GraphQL\Config\Field;
use Youshido\GraphQL\Config\AbstractConfig;
use Youshido\GraphQL\Type\TypeService;
/**
* Class InputFieldConfig
* @package Youshido\GraphQL\Config\Field
* @method $this setDescription(string $description)
class InputFieldConfig extends AbstractConfig
{
public function getRules()
return [
'name' => ['type' => TypeService::TYPE_STRING, 'final' => true],
'type' => ['type' => TypeService::TYPE_ANY_INPUT, 'final' => true],
'defaultValue' => ['type' => TypeService::TYPE_ANY],
'description' => ['type' => TypeService::TYPE_STRING],
'isDeprecated' => ['type' => TypeService::TYPE_BOOLEAN],
'deprecationReason' => ['type' => TypeService::TYPE_STRING],
];
}
public function getDefaultValue()
return $this->get('defaultValue');