Name   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Aggrego.
4
 * (c) Tomasz Kunicki <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types = 1);
11
12
namespace Aggrego\QueryConsumer;
13
14
use Assert\Assertion;
15
use TimiTao\ValueObject\Utils\StringValueObject;
16
17
class Name extends StringValueObject
18
{
19
    public function __construct(string $value)
20
    {
21
        Assertion::notEmpty($value);
22
        parent::__construct(self::class, $value);
23
    }
24
}
25