Completed
Pull Request — master (#95)
by
unknown
01:20
created

FrequentlyAskedQuestionTranslation   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 57
c 0
b 0
f 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getQuestion() 0 4 1
A setQuestion() 0 4 1
A getAnswer() 0 4 1
A setAnswer() 0 4 1
1
<?php
2
3
/**
4
 * This file was created by the developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * another great project.
7
 * You can find more information about us on https://bitbag.shop and write us
8
 * an email on [email protected].
9
 */
10
11
declare(strict_types=1);
12
13
namespace BitBag\SyliusCmsPlugin\Entity;
14
15
use Sylius\Component\Resource\Model\AbstractTranslation;
16
17
/**
18
 * @author Mikołaj Król <[email protected]>
19
 */
20
class FrequentlyAskedQuestionTranslation extends AbstractTranslation implements FrequentlyAskedQuestionTranslationInterface
21
{
22
    /**
23
     * @var int
24
     */
25
    protected $id;
26
27
    /**
28
     * @var null|string
29
     */
30
    protected $question;
31
32
    /**
33
     * @var null|string
34
     */
35
    protected $answer;
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getId(): ?int
41
    {
42
        return $this->id;
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48
    public function getQuestion(): ?string
49
    {
50
        return $this->question;
51
    }
52
53
    /**
54
     * {@inheritdoc}
55
     */
56
    public function setQuestion(string $question): void
57
    {
58
        $this->question = $question;
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64
    public function getAnswer(): ?string
65
    {
66
        return $this->answer;
67
    }
68
69
    /**
70
     * {@inheritdoc}
71
     */
72
    public function setAnswer(string $answer): void
73
    {
74
        $this->answer = $answer;
75
    }
76
}
77