GenerateVerificationToken::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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