FrequentlyAskedQuestionTranslation   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 9
c 0
b 0
f 0
dl 0
loc 34
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getQuestion() 0 3 1
A setAnswer() 0 3 1
A setQuestion() 0 3 1
A getAnswer() 0 3 1
A getId() 0 3 1
1
<?php
2
3
/*
4
 * This file was created by developers working at BitBag
5
 * Do you need more information about us and what we do? Visit our https://bitbag.io website!
6
 * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
7
*/
8
9
declare(strict_types=1);
10
11
namespace BitBag\SyliusCmsPlugin\Entity;
12
13
use Sylius\Component\Resource\Model\AbstractTranslation;
14
15
class FrequentlyAskedQuestionTranslation extends AbstractTranslation implements FrequentlyAskedQuestionTranslationInterface
16
{
17
    /** @var int */
18
    protected $id;
19
20
    /** @var string */
21
    protected $question;
22
23
    /** @var string */
24
    protected $answer;
25
26
    public function getId(): ?int
27
    {
28
        return $this->id;
29
    }
30
31
    public function getQuestion(): ?string
32
    {
33
        return $this->question;
34
    }
35
36
    public function setQuestion(string $question): void
37
    {
38
        $this->question = $question;
39
    }
40
41
    public function getAnswer(): ?string
42
    {
43
        return $this->answer;
44
    }
45
46
    public function setAnswer(string $answer): void
47
    {
48
        $this->answer = $answer;
49
    }
50
}
51