Completed
Push — master ( 70b047...5c79cc )
by Kristof
03:34
created

Query::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
namespace CultuurNet\UDB3\Role\ValueObjects;
4
5
use ValueObjects\StringLiteral\StringLiteral;
6
7
class Query extends StringLiteral
8
{
9
    /**
10
     * @param string $value
11
     */
12
    public function __construct(string $value)
13
    {
14
        if (empty($value)) {
15
            throw new \InvalidArgumentException('Query can\'t be empty.');
16
        }
17
        parent::__construct($value);
18
    }
19
}
20