Product   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 88
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 88
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getTitle() 0 4 1
A setTitle() 0 4 1
A getDescription() 0 4 1
A setDescription() 0 4 1
A getMedia() 0 4 1
A setMedia() 0 4 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