028959bbbb49033cb794a9a995d9b71ef01bedb7
[Packages/TYPO3.CMS.git] / typo3 / sysext / documentation / Classes / Domain / Model / DocumentFormat.php
1 <?php
2 namespace TYPO3\CMS\Documentation\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 /**
18 * An extension helper model to be used in ext:documentation context
19 *
20 * @entity
21 */
22 class DocumentFormat extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23 {
24 /**
25 * format
26 *
27 * @var string
28 * @validate NotEmpty
29 */
30 protected $format;
31
32 /**
33 * path
34 *
35 * @var string
36 * @validate NotEmpty
37 */
38 protected $path;
39
40 /**
41 * Returns the format.
42 *
43 * @return string $format
44 */
45 public function getFormat()
46 {
47 return $this->format;
48 }
49
50 /**
51 * Sets the format.
52 *
53 * @param string $format
54 * @return DocumentFormat
55 */
56 public function setFormat($format)
57 {
58 $this->format = $format;
59 return $this;
60 }
61
62 /**
63 * Returns the path.
64 *
65 * @return string $path
66 */
67 public function getPath()
68 {
69 return $this->path;
70 }
71
72 /**
73 * Sets the path.
74 *
75 * @param string $path
76 * @return DocumentFormat
77 */
78 public function setPath($path)
79 {
80 $this->path = $path;
81 return $this;
82 }
83 }