Completed
Push — master ( 4cc4cf...1e6e7e )
by Tim
13:02 queued 10s
created

QuestionCategory::getTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types = 1);
4
/**
5
 * Questioncategory / Fragen Kategorie.
6
 */
7
8
namespace HDNET\Faq\Domain\Model;
9
10
use HDNET\Autoloader\Annotation\DatabaseField;
11
use HDNET\Autoloader\Annotation\DatabaseTable;
12
13
/**
14
 * Questioncategory / Fragen Kategorie.
15
 *
16
 * @DatabaseTable
17
 */
18
class QuestionCategory extends AbstractModel
19
{
20
    /**
21
     * Title.
22
     *
23
     * @var string
24
     * @DatabaseField(type="string")
25
     */
26
    protected $title;
27
28
    /**
29
     * Parent.
30
     *
31
     * @var QuestionCategory
32
     * @DatabaseField(type="int", sql="int(11) DEFAULT '0' NOT NULL")
33
     */
34
    protected $parent;
35
36
    /**
37
     * @var int
38
     */
39
    protected $_languageUid = 0;
40
41
    /**
42
     * Set the title.
43
     *
44
     * @param string $title
45
     */
46
    public function setTitle(string $title): void
47
    {
48
        $this->title = $title;
49
    }
50
51
    /**
52
     * Get the title.
53
     *
54
     * @return string
55
     */
56
    public function getTitle(): string
57
    {
58
        return $this->title;
59
    }
60
61
    /**
62
     * Set the parent.
63
     *
64
     * @param QuestionCategory $parent
65
     */
66
    public function setParent(QuestionCategory $parent): void
67
    {
68
        $this->parent = $parent;
69
    }
70
71
    /**
72
     * Get the parent.
73
     *
74
     * @return QuestionCategory
75
     */
76
    public function getParent(): QuestionCategory
77
    {
78
        return $this->parent;
79
    }
80
81
    /**
82
     * Public getter for the languageUid.
83
     *
84
     * @return int
85
     */
86
    public function getLanguageUid(): int
87
    {
88
        return $this->_languageUid;
89
    }
90
}
91