Completed
Push — develop ( b8005e...fd13fe )
by Freddie
03:18
created

CreateEntityRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace FlexPHP\Generator\Domain\Messages\Requests;
4
5
use FlexPHP\Messages\RequestInterface;
6
7
class CreateEntityRequest implements RequestInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    public $name;
13
14
    /**
15
     * @var array
16
     */
17
    public $properties;
18
19 2
    public function __construct(string $name, array $properties)
20
    {
21 2
        $this->name = $name;
22 2
        $this->properties = $properties;
23 2
    }
24
}
25