1
<?php
2

3
namespace Nuwave\Lighthouse\Execution\Arguments;
4

5
class NamedType
6
{
7
    /**
8
     * The name of the type as defined in the schema.
9
     *
10
     * @var string
11
     */
12
    public $name;
13

14
    /**
15
     * Is this type defined to be non-nullable?
16
     *
17
     * @var bool
18
     */
19
    public $nonNull = false;
20

21 1
    public function __construct(string $name)
22
    {
23 1
        $this->name = $name;
24
    }
25
}

Read our documentation on viewing source code .

Loading