Completed
Pull Request — master (#1)
by Viacheslav
06:08
created

Egg   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Swaggest\JsonSchema\Structure;
4
5
6
use Swaggest\JsonSchema\Schema;
7
8
class Egg
9
{
10
11
12
    /** @var Schema */
13
    public $classSchema;
14
    public $name;
15
    /** @var Schema */
16
    public $propertySchema;
17
18
    /**
19
     * Egg constructor.
20
     * @param Schema $classSchema
21
     * @param $name
22
     * @param Schema $propertySchema
23
     */
24
    public function __construct(Schema $classSchema, $name, Schema $propertySchema)
25
    {
26
        $this->classSchema = $classSchema;
27
        $this->name = $name;
28
        $this->propertySchema = $propertySchema;
29
    }
30
}