Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
40 | 5 | public static function add( |
|
41 | Identity $identity, |
||
42 | User $user, |
||
43 | Name $name, |
||
44 | UrlInterface $location |
||
45 | ): self { |
||
46 | 5 | $self = new self($identity, $user, $name, $location); |
|
47 | 5 | $self->record(new SubscriptionWasAdded($identity, $user, $name, $location)); |
|
48 | |||
49 | 5 | return $self; |
|
50 | } |
||
78 |