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

Query   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
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