Code Duplication    Length = 14-14 lines in 2 locations

src/Description/Standard/OpenApi/OpenApiResponse.php 1 location

@@ 17-30 (lines=14) @@
14
/**
15
 * @author John Kleijn <[email protected]>
16
 */
17
class OpenApiResponse extends Response
18
{
19
    /**
20
     * Response constructor.
21
     *
22
     * @param int       $code
23
     * @param \stdClass $definition
24
     */
25
    public function __construct(int $code, \stdClass $definition)
26
    {
27
        $this->code   = $code;
28
        $this->schema = Schema::get(isset($definition->schema) ? $definition->schema : null);
29
    }
30
}
31

src/Description/Standard/Raml/RamlResponse.php 1 location

@@ 17-30 (lines=14) @@
14
/**
15
 * @author John Kleijn <[email protected]>
16
 */
17
class RamlResponse extends Response
18
{
19
    /**
20
     * Response constructor.
21
     *
22
     * @param int       $code
23
     * @param \stdClass $definition
24
     */
25
    public function __construct(int $code, \stdClass $definition)
26
    {
27
        $this->code   = $code;
28
        $this->schema = Schema::get(isset($definition->schema) ? $definition->schema : null);
29
    }
30
}
31