[CLEANUP] The correct case must be used for standard PHP types in phpdoc
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / View / BackendLayout / DataProviderContext.php
1 <?php
2 namespace TYPO3\CMS\Backend\View\BackendLayout;
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 * Context that is forwarded to backend layout data providers.
19 */
20 class DataProviderContext implements \TYPO3\CMS\Core\SingletonInterface
21 {
22 /**
23 * @var int
24 */
25 protected $pageId;
26
27 /**
28 * @var string
29 */
30 protected $tableName;
31
32 /**
33 * @var string
34 */
35 protected $fieldName;
36
37 /**
38 * @var array
39 */
40 protected $data;
41
42 /**
43 * @var array
44 */
45 protected $pageTsConfig;
46
47 /**
48 * @return int
49 */
50 public function getPageId()
51 {
52 return $this->pageId;
53 }
54
55 /**
56 * @param int $pageId
57 * @return DataProviderContext
58 */
59 public function setPageId($pageId)
60 {
61 $this->pageId = $pageId;
62 return $this;
63 }
64
65 /**
66 * @return string
67 */
68 public function getTableName()
69 {
70 return $this->tableName;
71 }
72
73 /**
74 * @param string $tableName
75 * @return DataProviderContext
76 */
77 public function setTableName($tableName)
78 {
79 $this->tableName = $tableName;
80 return $this;
81 }
82
83 /**
84 * @return string
85 */
86 public function getFieldName()
87 {
88 return $this->fieldName;
89 }
90
91 /**
92 * @param string $fieldName
93 * @return DataProviderContext
94 */
95 public function setFieldName($fieldName)
96 {
97 $this->fieldName = $fieldName;
98 return $this;
99 }
100
101 /**
102 * @return array
103 */
104 public function getData()
105 {
106 return $this->data;
107 }
108
109 /**
110 * @param array $data
111 * @return DataProviderContext
112 */
113 public function setData(array $data)
114 {
115 $this->data = $data;
116 return $this;
117 }
118
119 /**
120 * @return array
121 */
122 public function getPageTsConfig()
123 {
124 return $this->pageTsConfig;
125 }
126
127 /**
128 * @param array $pageTsConfig
129 * @return DataProviderContext
130 */
131 public function setPageTsConfig(array $pageTsConfig)
132 {
133 $this->pageTsConfig = $pageTsConfig;
134 return $this;
135 }
136 }