Egg::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
cc 1
nc 1
nop 3
crap 1
1
<?php
2
3
namespace Swaggest\JsonSchema\Structure;
4
5
use Swaggest\JsonSchema\Schema;
6
use Swaggest\JsonSchema\SchemaContract;
7
use Swaggest\JsonSchema\Wrapper;
8
9
class Egg
10
{
11
12
13
    /** @var SchemaContract */
14
    public $classSchema;
15
    public $name;
16
    /** @var SchemaContract */
17
    public $propertySchema;
18
19
    /**
20
     * Egg constructor.
21
     * @param SchemaContract $classSchema
22
     * @param string $name
23
     * @param SchemaContract $propertySchema
24
     */
25 4
    public function __construct(SchemaContract $classSchema, $name, SchemaContract $propertySchema)
26
    {
27 4
        $this->classSchema = $classSchema;
28 4
        $this->name = $name;
29 4
        $this->propertySchema = $propertySchema;
30
    }
31
}