Code Duplication    Length = 9-9 lines in 3 locations

src/Type/InputObject/AbstractInputObjectType.php 1 location

@@ 28-36 (lines=9) @@
25
26
    protected $isBuilt = false;
27
28
    public function getConfig()
29
    {
30
        if (!$this->isBuilt) {
31
            $this->isBuilt = true;
32
            $this->build($this->config);
33
        }
34
35
        return $this->config;
36
    }
37
38
    public function __construct($config = [])
39
    {

src/Type/InterfaceType/AbstractInterfaceType.php 1 location

@@ 24-32 (lines=9) @@
21
22
    protected $isBuilt = false;
23
24
    public function getConfig()
25
    {
26
        if (!$this->isBuilt) {
27
            $this->isBuilt = true;
28
            $this->build($this->config);
29
        }
30
31
        return $this->config;
32
    }
33
34
    /**
35
     * ObjectType constructor.

src/Type/Object/AbstractObjectType.php 1 location

@@ 29-37 (lines=9) @@
26
27
    protected $isBuilt = false;
28
29
    public function getConfig()
30
    {
31
        if (!$this->isBuilt) {
32
            $this->isBuilt = true;
33
            $this->build($this->config);
34
        }
35
36
        return $this->config;
37
    }
38
39
    /**
40
     * ObjectType constructor.