U2fRegistration   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponse() 0 3 1
A setResponse() 0 5 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