Completed
Push — issue#804 ( 62fcb8 )
by Guilherme
04:14
created

SelectMotherInitialsChallenge   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 33
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 3 1
A getChoices() 0 3 1
1
<?php
2
/**
3
 * This file is part of the login-cidadao project or it's bundles.
4
 *
5
 * (c) Guilherme Donato <guilhermednt on github>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace PROCERGS\LoginCidadao\CpfVerificationBundle\Model;
12
13
class SelectMotherInitialsChallenge extends AbstractChallenge
14
{
15
    public const CHALLENGE_NAME = 'select_mother_initials';
16
17
    /** @var string[] */
18
    private $choices;
19
20
    /**
21
     * SelectMotherInitialsChallenge constructor.
22
     * @param int $attemptsLeft
23
     * @param string $cpf
24
     * @param string[] $choices
25
     */
26 4
    public function __construct(int $attemptsLeft, string $cpf, array $choices)
27
    {
28 4
        $this->choices = $choices;
29 4
        parent::__construct($attemptsLeft, $cpf);
30 4
    }
31
32
    /**
33
     * @inheritDoc
34
     */
35 2
    public function getName(): string
36
    {
37 2
        return self::CHALLENGE_NAME;
38
    }
39
40
    /**
41
     * @return string[]
42
     */
43 2
    public function getChoices(): array
44
    {
45 2
        return $this->choices;
46
    }
47
}
48