Completed
Push — master ( 8f139f...a8687a )
by Joachim
04:58
created

Recipient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 9
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php declare(strict_types = 1);
2
namespace Loevgaard\Linkmobility\ValueObject;
3
4
use Assert\Assert;
5
6
class Recipient extends StringValueObject
7
{
8
    public function __construct(string $value)
9
    {
10
        Assert::that($value)->regex('/^(\+|c)?[0-9]+$/i');
11
12
        parent::__construct($value);
13
    }
14
}
15