Code Duplication    Length = 28-28 lines in 2 locations

src/Definition/InputUnionDefinition.php 1 location

@@ 21-48 (lines=28) @@
18
/**
19
 * Class InputUnionDefinition
20
 */
21
class InputUnionDefinition extends AbstractTypeDefinition implements InputUnionDefinitionInterface
22
{
23
    use HasDefinitions;
24
25
    /**
26
     * @return TypeInterface
27
     */
28
    public static function getType(): TypeInterface
29
    {
30
        return Type::of(Type::INPUT_UNION);
31
    }
32
    
33
    /**
34
     * @return bool
35
     */
36
    public function isRenderable(): bool
37
    {
38
        return false;
39
    }
40
41
    /**
42
     * @return bool
43
     */
44
    public function isInputable(): bool
45
    {
46
        return true;
47
    }
48
}
49

src/Definition/UnionDefinition.php 1 location

@@ 21-48 (lines=28) @@
18
/**
19
 * Class UnionDefinition
20
 */
21
class UnionDefinition extends AbstractTypeDefinition implements InputUnionDefinitionInterface
22
{
23
    use HasDefinitions;
24
25
    /**
26
     * @return TypeInterface
27
     */
28
    public static function getType(): TypeInterface
29
    {
30
        return Type::of(Type::UNION);
31
    }
32
33
    /**
34
     * @return bool
35
     */
36
    public function isRenderable(): bool
37
    {
38
        return true;
39
    }
40
41
    /**
42
     * @return bool
43
     */
44
    public function isInputable(): bool
45
    {
46
        return false;
47
    }
48
}
49