Question::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace App\Models;
4
5
/**
6
 * Class Question.
7
 */
8
class Question
9
{
10
    /**
11
     * Question Identifier (One or Two).
12
     *
13
     * @var int
14
     */
15
    public $questionId = 1;
16
17
    /**
18
     * Question Key (Translate Text).
19
     *
20
     * @var string
21
     */
22
    public $questionKey = '';
23
24
    /**
25
     * Store a Question.
26
     *
27
     * @param int    $questionId
28
     * @param string $questionKey
29
     */
30
    public function __construct(int $questionId, string $questionKey)
31
    {
32
        $this->questionId = $questionId;
33
        $this->questionKey = $questionKey;
34
    }
35
}
36