Completed
Push — master ( c476c7...501e4d )
by
unknown
05:07
created

LocationId   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
1
<?php
2
3
namespace CultuurNet\UDB3\Location;
4
5
use ValueObjects\StringLiteral\StringLiteral;
6
7
class LocationId extends StringLiteral
8
{
9
    public function __construct($value)
10
    {
11
        parent::__construct($value);
12
13
        if (empty($value)) {
14
            throw new \InvalidArgumentException('LocationId can\'t have an empty value.');
15
        }
16
    }
17
}
18