NamedIdentity::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Blackmine\Model;
6
7
use Blackmine\Collection\IdentityCollection;
8
9
/**
10
 * @method int getId()
11
 * @method string getName()
12
 *
13
 * @method setName(string $name): void
14
 * @method setId(int $id): void
15
 */
16
class NamedIdentity extends Identity
17
{
18
    public static IdentityCollection $values;
19
20
    public function __construct(protected ?int $id = null, protected ?string $name = null)
21
    {
22
    }
23
}
24