Completed
Push — master ( 76e109...c917db )
by Valentin
02:55 queued 16s
created

Structure::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Cycle\ORM\Promise\Declaration;
5
6
class Structure
7
{
8
    /** @var string[] */
9
    public $properties = [];
10
11
    /** @var \PhpParser\Node\Stmt\ClassMethod[] */
12
    public $methods = [];
13
14
    /** @var bool */
15
    public $hasConstructor;
16
17
    public static function create(array $properties, array $methods, bool $hasConstructor): Structure
18
    {
19
        $self = new self();
20
        $self->properties = $properties;
21
        $self->methods = $methods;
22
        $self->hasConstructor = $hasConstructor;
23
24
        return $self;
25
    }
26
27
    protected function __construct()
28
    {
29
    }
30
}