Code Duplication    Length = 18-18 lines in 2 locations

src/SDL/Reflection/Builder/Definitions/InputBuilder.php 1 location

@@ 23-40 (lines=18) @@
20
/**
21
 * Class InputBuilder
22
 */
23
class InputBuilder extends BaseInput implements Compilable
24
{
25
    use Compiler;
26
    use ArgumentsBuilder;
27
    use DirectivesBuilder;
28
29
    /**
30
     * InputBuilder constructor.
31
     * @param NodeInterface $ast
32
     * @param DocumentBuilder $document
33
     * @throws \Railt\SDL\Exceptions\TypeConflictException
34
     */
35
    public function __construct(NodeInterface $ast, DocumentBuilder $document)
36
    {
37
        $this->boot($ast, $document);
38
        $this->offset = $this->offsetPrefixedBy('input');
39
    }
40
}
41

src/SDL/Reflection/Builder/Definitions/InterfaceBuilder.php 1 location

@@ 23-40 (lines=18) @@
20
/**
21
 * Class InterfaceBuilder
22
 */
23
class InterfaceBuilder extends BaseInterface implements Compilable
24
{
25
    use Compiler;
26
    use FieldsBuilder;
27
    use DirectivesBuilder;
28
29
    /**
30
     * SchemaBuilder constructor.
31
     * @param NodeInterface $ast
32
     * @param DocumentBuilder $document
33
     * @throws \Railt\SDL\Exceptions\TypeConflictException
34
     */
35
    public function __construct(NodeInterface $ast, DocumentBuilder $document)
36
    {
37
        $this->boot($ast, $document);
38
        $this->offset = $this->offsetPrefixedBy('interface');
39
    }
40
}
41