Completed
Push — master ( bb9c1e...e0f733 )
by Tim
17:17
created

Product::setDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
4
namespace FRUIT\Shopize\Domain\Model;
5
6
/**
7
 * Product
8
 * @db
9
 */
10
class Product extends AbstractModel
11
{
12
    /**
13
     * Title
14
     *
15
     * @var string
16
     * @db
17
     * @validate NotEmpty
18
     */
19
    protected $title;
20
21
    /**
22
     * Description
23
     *
24
     * @var string
25
     * @db
26
     * @enableRichText
27
     */
28
    protected $description;
29
30
    /**
31
     * Media
32
     *
33
     * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
34
     * @db
35
     */
36
    protected $media;
37
38
    /**
39
     * Get title
40
     *
41
     * @return string
42
     */
43
    public function getTitle()
44
    {
45
        return $this->title;
46
    }
47
48
    /**
49
     * Set title
50
     *
51
     * @param string $title
52
     */
53
    public function setTitle($title)
54
    {
55
        $this->title = $title;
56
    }
57
58
    /**
59
     * Get description
60
     *
61
     * @return string
62
     */
63
    public function getDescription()
64
    {
65
        return $this->description;
66
    }
67
68
    /**
69
     * Set description
70
     *
71
     * @param string $description
72
     */
73
    public function setDescription($description)
74
    {
75
        $this->description = $description;
76
    }
77
78
    /**
79
     * Get media
80
     *
81
     * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
82
     */
83
    public function getMedia()
84
    {
85
        return $this->media;
86
    }
87
88
    /**
89
     * Set media
90
     *
91
     * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $media
92
     */
93
    public function setMedia($media)
94
    {
95
        $this->media = $media;
96
    }
97
}
98