T3Mom.php 3.6 KB
Newer Older
Siddharth Sheth's avatar
Siddharth Sheth committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
namespace T3o\T3oMom\Domain\Model;

/***
 *
 * This file is part of the "MOM" Extension for TYPO3 CMS.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 *  (c) 2019
 *
 ***/

/**
 * T3Mom
 */
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
class T3Mom extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
    /**
     * title
     *
     * @var string
     */
    protected $title = '';

    /**
     * momdate
     *
     * @var \DateTime
     */
    protected $momdate = null;

    /**
     * text
     *
     * @var string
     */
    protected $text = '';

    /**
     * momauthor
     *
     * @var string
     */
    protected $momauthor = '';

    /**
     * t3teams
     *
     * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\T3o\T3oJobs\Domain\Model\T3teams>
     */
    protected $t3teams = null;

    /**
     * __construct
     */
    public function __construct()
    {
        //Do not remove the next line: It would break the functionality
        $this->initStorageObjects();
    }

    /**
     * Initializes all ObjectStorage properties
     * Do not modify this method!
     * It will be rewritten on each save in the extension builder
     * You may modify the constructor of this class instead
     */
    protected function initStorageObjects()
    {
        $this->t3teams = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
    }

    /**
     * Returns the title
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Sets the title
     *
     * @param string $title
     */
    public function setTitle($title)
    {
        $this->title = $title;
    }

    /**
     * Returns the momdate
     *
     * @return \DateTime $momdate
     */
    public function getMomdate()
    {
        return $this->momdate;
    }

    /**
     * Sets the momdate
     *
     * @param \DateTime $momdate
     */
    public function setMomdate(\DateTime $momdate)
    {
        $this->momdate = $momdate;
    }

    /**
     * Returns the text
     *
     * @return string $text
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Sets the text
     *
     * @param string $text
     */
    public function setText($text)
    {
        $this->text = $text;
    }

    /**
     * Returns the momauthor
     *
     * @return string $momauthor
     */
    public function getMomauthor()
    {
        return $this->momauthor;
    }

    /**
     * Sets the momauthor
     *
     * @param string $momauthor
     */
    public function setMomauthor($momauthor)
    {
        $this->momauthor = $momauthor;
    }

    /**
     * Adds a T3teams
     *
     * @param \T3o\T3oJobs\Domain\Model\T3teams $t3team
     */
    public function addT3team(\T3o\T3oJobs\Domain\Model\T3teams $t3team)
    {
        $this->t3teams->attach($t3team);
    }

    /**
     * Removes a T3teams
     *
     * @param \T3o\T3oJobs\Domain\Model\T3teams $t3teamToRemove The T3teams to be removed
     */
    public function removeT3team(\T3o\T3oJobs\Domain\Model\T3teams $t3teamToRemove)
    {
        $this->t3teams->detach($t3teamToRemove);
    }

    /**
     * Returns the t3teams
     *
     * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\T3o\T3oJobs\Domain\Model\T3teams> $t3teams
     */
    public function getT3teams()
    {
        return $this->t3teams;
    }

    /**
     * Sets the t3teams
     *
     * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\T3o\T3oJobs\Domain\Model\T3teams> $t3teams
     */
    public function setT3teams(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $t3teams)
    {
        $this->t3teams = $t3teams;
    }
Siddharth Sheth's avatar
Siddharth Sheth committed
192
}