SilverStripe\GraphQL\Scaffolding\Scaffolders\ArgumentScaffolder
Synopsis
class ArgumentScaffolder
implements
ConfigurationApplier
{
- // members
- public $argName;
- protected $description;
- protected Type; $type;
- protected $defaultValue;
- protected $required;
- // methods
- public void __construct()
- public $this setRequired()
- public $this setDescription()
- public $this setDefaultValue()
- public string getDescription()
- public mixed getDefaultValue()
- public boolean isRequired()
- public void applyConfig()
- public array toArray()
Hierarchy
Members
protected
- $defaultValue — mixed
- $description — string
- $required — boolean
- $type — SilverStripe\GraphQL\Scaffolding\Scaffolders\Type;
public
- $argName — string
Methods
public
- __construct() — ArgumentScaffolder constructor
- applyConfig() — Applies an array of configuration to the scaffolder
- getDefaultValue()
- getDescription()
- isRequired()
- setDefaultValue() — Sets the default value of the argument
- setDescription() — Sets the argument description
- setRequired() — Sets the argument as required
- toArray() — Creates an array suitable for a map of args in a field