NullDescriptor.php$0 ➔ __construct()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 9
rs 9.9666
cc 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Koriym\AppStateDiagram;
6
7
/** @SuppressWarnings(PHPMD.UnusedLocalVariable) */
8
class NullDescriptor extends AbstractDescriptor
9
{
10
    public function __construct()
11
    {
12
        parent::__construct(new class {
13
            /** @var string */
14
            public $id = '';
15
16
            /** @var string */
17
            public $type = 'semantic';
18
        }, null);
19
    }
20
}
21