Question   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Method

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