[TASK] Re-work/simplify copyright header in PHP files - Part 2
[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 * @author Andrea Schmuttermair <spam@schmutt.de>
22 */
23 class DocumentFormat extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
24
25 /**
26 * format
27 *
28 * @var string
29 * @validate NotEmpty
30 */
31 protected $format;
32
33 /**
34 * path
35 *
36 * @var string
37 * @validate NotEmpty
38 */
39 protected $path;
40
41 /**
42 * Returns the format.
43 *
44 * @return string $format
45 */
46 public function getFormat() {
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 $this->format = $format;
58 return $this;
59 }
60
61 /**
62 * Returns the path.
63 *
64 * @return string $path
65 */
66 public function getPath() {
67 return $this->path;
68 }
69
70 /**
71 * Sets the path.
72 *
73 * @param string $path
74 * @return DocumentFormat
75 */
76 public function setPath($path) {
77 $this->path = $path;
78 return $this;
79 }
80
81 }