Passed
Push — master ( 58a1da...a6fa42 )
by Ross
29:00
created

GetQrCode::getQrCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * A Magento 2 module named Rossmitchell/Twofactor
4
 * Copyright (C) 2017
5
 *
6
 * This file is part of Rossmitchell/Twofactor.
7
 *
8
 * Rossmitchell/Twofactor is free software: you can redistribute it and/or modify
9
 * it under the terms of the GNU General Public License as published by
10
 * the Free Software Foundation, either version 3 of the License, or
11
 * (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
 */
21
22
namespace Rossmitchell\Twofactor\Model\Api\Response;
23
24
use Rossmitchell\Twofactor\Api\Response\GetQrCodeInterface;
25
26
class GetQrCode implements GetQrCodeInterface
27
{
28
    private $email;
29
30
    private $isUsingTwoFactor;
31
32
    private $qrCode;
33
34
    /**
35
     * @return string
36
     */
37
    public function getEmail()
38
    {
39
        return $this->email;
40
    }
41
42
    /**
43
     * @param string $email
44
     *
45
     * @return GetQrCode
46
     */
47
    public function setEmail($email)
48
    {
49
        $this->email = $email;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @return bool
56
     */
57
    public function getIsUsingTwoFactor()
58
    {
59
        return $this->isUsingTwoFactor;
60
    }
61
62
    /**
63
     * @param bool $isUsingTwoFactor
64
     *
65
     * @return GetQrCode
66
     */
67
    public function setIsUsingTwoFactor($isUsingTwoFactor)
68
    {
69
        $this->isUsingTwoFactor = $isUsingTwoFactor;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getQrCode()
78
    {
79
        return $this->qrCode;
80
    }
81
82
    /**
83
     * @param string $qrCode
84
     *
85
     * @return GetQrCode
86
     */
87
    public function setQrCode($qrCode)
88
    {
89
        $this->qrCode = $qrCode;
90
91
        return $this;
92
    }
93
}
94