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

Egg::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
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
}