Completed
Push — development ( 6cef7f...24186c )
by Claudio
02:21
created

Question::__construct()   A

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
 * @package App\Models
8
 */
9
class Question
10
{
11
    /**
12
     * Question Identifier (One or Two)
13
     *
14
     * @var int
15
     */
16
    public $questionId = 1;
17
18
    /**
19
     * Question Key (Translate Text)
20
     *
21
     * @var string
22
     */
23
    public $questionKey = '';
24
25
    /**
26
     * Store a Question
27
     *
28
     * @param int $questionId
29
     * @param string $questionKey
30
     */
31
    public function __construct(int $questionId, string $questionKey)
32
    {
33
        $this->questionId = $questionId;
34
        $this->questionKey = $questionKey;
35
    }
36
}
37