Completed
Push — master ( e20c37...02d379 )
by
unknown
31:57
created

FileMount::getTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace TYPO3\CMS\Extbase\Domain\Model;
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
use TYPO3\CMS\Extbase\Annotation as Extbase;
18
19
/**
20
 * This model represents a file mount.
21
 *
22
 * @deprecated since TYPO3 10.4, will be removed in version 11.0
23
 */
24
class FileMount extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
25
{
26
    public function __construct()
27
    {
28
        trigger_error(
29
            __CLASS__ . ' is deprecated since TYPO3 10.4 and will be removed in version 11.0',
30
            E_USER_DEPRECATED
31
        );
32
    }
33
34
    /**
35
     * Title of the file mount.
36
     *
37
     * @var string
38
     * @Extbase\Validate("NotEmpty")
39
     */
40
    protected $title = '';
41
42
    /**
43
     * Description of the file mount.
44
     *
45
     * @var string
46
     */
47
    protected $description;
48
49
    /**
50
     * Path of the file mount.
51
     *
52
     * @var string
53
     * @Extbase\Validate("NotEmpty")
54
     */
55
    protected $path = '';
56
57
    /**
58
     * Determines whether the value of the path field is to be recognized as an absolute
59
     * path on the server or a path relative to the fileadmin/ subfolder to the website.
60
     *
61
     * If the value is true the path is an absolute one, otherwise the path is relative
62
     * the fileadmin.
63
     *
64
     * @var bool
65
     */
66
    protected $isAbsolutePath = false;
67
68
    /**
69
     * Determines whether this file mount should be read only.
70
     *
71
     * @var bool
72
     */
73
    protected $readOnly = false;
74
75
    /**
76
     * Getter for the title of the file mount.
77
     *
78
     * @return string
79
     */
80
    public function getTitle()
81
    {
82
        return $this->title;
83
    }
84
85
    /**
86
     * Setter for the title of the file mount.
87
     *
88
     * @param string $value
89
     */
90
    public function setTitle($value)
91
    {
92
        $this->title = $value;
93
    }
94
95
    /**
96
     * Getter for the description of the file mount.
97
     *
98
     * @return string
99
     */
100
    public function getDescription()
101
    {
102
        return $this->description;
103
    }
104
105
    /**
106
     * Setter for the description of the file mount.
107
     *
108
     * @param string $description
109
     */
110
    public function setDescription($description)
111
    {
112
        $this->description = $description;
113
    }
114
115
    /**
116
     * Getter for the path of the file mount.
117
     *
118
     * @return string
119
     */
120
    public function getPath()
121
    {
122
        return $this->path;
123
    }
124
125
    /**
126
     * Setter for the path of the file mount.
127
     *
128
     * @param string $value
129
     */
130
    public function setPath($value)
131
    {
132
        $this->path = $value;
133
    }
134
135
    /**
136
     * Getter for the is absolute path of the file mount.
137
     *
138
     * @return bool
139
     */
140
    public function getIsAbsolutePath()
141
    {
142
        return $this->isAbsolutePath;
143
    }
144
145
    /**
146
     * Setter for is absolute path of the file mount.
147
     *
148
     * @param bool $value
149
     */
150
    public function setIsAbsolutePath($value)
151
    {
152
        $this->isAbsolutePath = $value;
153
    }
154
155
    /**
156
     * Setter for the readOnly property of the file mount.
157
     *
158
     * @param bool $readOnly
159
     */
160
    public function setReadOnly($readOnly)
161
    {
162
        $this->readOnly = $readOnly;
163
    }
164
165
    /**
166
     * Getter for the readOnly property of the file mount.
167
     *
168
     * @return bool
169
     */
170
    public function isReadOnly()
171
    {
172
        return $this->readOnly;
173
    }
174
}
175