Egg   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 21
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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
}