U2fRegistration::getResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the U2F Security bundle.
5
 *
6
 * (c) Michael Barbey <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Mbarbey\U2fSecurityBundle\Model\U2fRegistration;
13
14
use Symfony\Component\Validator\Constraints as Assert;
15
16
/**
17
 * U2F registration exchange base
18
 *
19
 * When you create your entity for the registration exchange, you can either extends this class or
20
 * implement the U2fRegistrationInterface.
21
 *
22
 * @author Michael Barbey <[email protected]>
23
 */
24
class U2fRegistration implements U2fRegistrationInterface
25
{
26
    /**
27
     * @Assert\NotBlank()
28
     */
29
    protected $response;
30
31
    /**
32
     * @return string|null
33
     */
34 1
    public function getResponse()
35
    {
36 1
        return $this->response;
37
    }
38
39
    /**
40
     * @param string|null $response
41
     */
42 1
    public function setResponse($response = null)
43
    {
44 1
        $this->response = $response;
45
46 1
        return $this;
47
    }
48
}
49