GenerateVerificationToken   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A email() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sylius\ShopApiPlugin\Command;
6
7
use Webmozart\Assert\Assert;
8
9
final class GenerateVerificationToken
10
{
11
    /**
12
     * @var string
13
     */
14
    private $email;
15
16
    public function __construct(string $email)
17
    {
18
        Assert::string($email, 'Email should be string, got %s');
19
20
        $this->email = $email;
21
    }
22
23
    public function email(): string
24
    {
25
        return $this->email;
26
    }
27
}
28