a16e62e866fea3cff7e1e8866cca5273ae679ad5
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / Fixtures / Extensions / irre_tutorial / Classes / Domain / Model / Hotel.php
1 <?php
2 namespace OliverHader\IrreTutorial\Domain\Model;
3
4 /***************************************************************
5 *
6 * Copyright notice
7 *
8 * (c) 2014 Oliver Hader <oliver.hader@typo3.org>
9 *
10 * All rights reserved
11 *
12 * This script is part of the TYPO3 project. The TYPO3 project is
13 * free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * The GNU General Public License can be found at
19 * http://www.gnu.org/copyleft/gpl.html.
20 *
21 * This script is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * This copyright notice MUST APPEAR in all copies of the script!
27 ***************************************************************/
28
29 /**
30 * Hotel
31 */
32 class Hotel extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
33
34 /**
35 * @var string
36 */
37 protected $title = '';
38
39 /**
40 * @lazy
41 * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\OliverHader\IrreTutorial\Domain\Model\Offer>
42 */
43 protected $offers = NULL;
44
45 /**
46 * Initializes this object.
47 */
48 public function __construct() {
49 $this->offers = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
50 }
51
52 /**
53 * @return string $title
54 */
55 public function getTitle() {
56 return $this->title;
57 }
58
59 /**
60 * @param string $title
61 * @return void
62 */
63 public function setTitle($title) {
64 $this->title = $title;
65 }
66
67 /**
68 * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\OliverHader\IrreTutorial\Domain\Model\Offer>
69 */
70 public function getOffers() {
71 return $this->offers;
72 }
73
74 /**
75 * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\OliverHader\IrreTutorial\Domain\Model\Offer> $offers
76 * @return void
77 */
78 public function setOffers(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $offers) {
79 $this->offers = $offers;
80 }
81
82 }