SilverStripe\GraphQL\Scaffolding\Util\StringTypeParser
Parses a type, e.g. Int!(20) into an array defining the arg type
Synopsis
class StringTypeParser
implements
TypeParserInterface
{
- // members
- protected $rawArg;
- protected $typeStr;
- protected bool $required = false;
- protected $defaultValue = NULL;
- // methods
- public static bool isInternalType()
- public void __construct()
- public bool isRequired()
- public mixed getName()
- public null getDefaultValue()
- public Type|string getType()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Implements
Members
protected
- $defaultValue — null
- $rawArg — string
- $required — SilverStripe\GraphQL\Scaffolding\Util\bool
- $typeStr — string
Methods
public
- __construct() — TypeParser constructor.
- getDefaultValue()
- getName()
- getType()
- isInternalType() — Returns true if the given type is an internal GraphQL type, e.g. "String" or "Int"
- isRequired()