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

SelectMotherInitialsChallenge::getName()   A

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 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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