Source of file EnumSingleton.php
Size: 0,499 Bytes - Last Modified: 2021-12-23T10:50:47+00:00
/var/www/docs.ssmods.com/process/src/src/GraphQL/Types/Enums/EnumSingleton.php
12345678910111213141516171819202122232425262728293031 | <?php namespace SilverStripe\Gatsby\GraphQL\Types\Enums; use GraphQL\Type\Definition\EnumType; use SilverStripe\GraphQL\TypeCreator; abstract class EnumSingleton extends TypeCreator { /** * @var EnumType */ private $type; public function toType() { if (!$this->type) { $this->type = new EnumType($this->toArray()); } return $this->type; } public function getAttributes() { return $this->attributes(); } } |