EmailAddressAwareTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setEmailAddress() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Nordic\EmailAddress;
6
7
/**
8
 * Email address aware trait
9
 *
10
 * @implements EmailAddressAwareInterface
11
 */
12
trait EmailAddressAwareTrait
13
{
14
    use EmailAddressProviderTrait;
15
16
    /**
17
     * Set email address value object
18
     */
19 3
    public function setEmailAddress(EmailAddressInterface $emailAddress): void
20
    {
21 3
        $this->emailAddress = $emailAddress;
22 3
    }
23
}
24