1 | <?php |
||
37 | class Session extends ObjectAbstract implements SessionInterface |
||
38 | { |
||
39 | use DriverAwareTrait, HandlerAwareTrait, ValidatorAwareTrait, GeneratorAwareTrait; |
||
40 | |||
41 | /** |
||
42 | * Session id |
||
43 | * |
||
44 | * @var string |
||
45 | * @access protected |
||
46 | */ |
||
47 | protected $id; |
||
48 | |||
49 | /** |
||
50 | * Session name |
||
51 | * |
||
52 | * @var string |
||
53 | * @access protected |
||
54 | */ |
||
55 | protected $name; |
||
56 | |||
57 | /** |
||
58 | * session data |
||
59 | * |
||
60 | * @var array |
||
61 | * @access protected |
||
62 | */ |
||
63 | protected $data; |
||
64 | |||
65 | /** |
||
66 | * Init the session |
||
67 | * |
||
68 | * @param string $name session name |
||
|
|||
69 | * @param SessionHandlerInterface $handler session save handler |
||
70 | * @param DriverInterface $driver communication driver |
||
71 | * @param GeneratorInterface $generator id generator |
||
72 | * @access public |
||
73 | */ |
||
74 | public function __construct( |
||
86 | |||
87 | /** |
||
88 | * Write & close |
||
89 | * |
||
90 | * @access public |
||
91 | */ |
||
92 | public function __destruct() |
||
96 | |||
97 | /** |
||
98 | * {@inheritDoc} |
||
99 | */ |
||
100 | public function start() |
||
109 | |||
110 | /** |
||
111 | * {@inheritDoc} |
||
112 | */ |
||
113 | public function close() |
||
130 | |||
131 | /** |
||
132 | * {@inheritDoc} |
||
133 | */ |
||
134 | public function abort() |
||
139 | |||
140 | /** |
||
141 | * {@inheritDoc} |
||
142 | */ |
||
143 | public function reset() |
||
147 | |||
148 | /** |
||
149 | * {@inheritDoc} |
||
150 | */ |
||
151 | public function destroy() |
||
164 | |||
165 | /** |
||
166 | * {@inheritDoc} |
||
167 | */ |
||
168 | public function setName(/*# string */ $sessionName) |
||
173 | |||
174 | /** |
||
175 | * {@inheritDoc} |
||
176 | */ |
||
177 | public function getName()/*# : string */ |
||
181 | |||
182 | /** |
||
183 | * {@inheritDoc} |
||
184 | */ |
||
185 | public function setId(/*# string */ $sessionId = '') |
||
190 | |||
191 | /** |
||
192 | * {@inheritDoc} |
||
193 | */ |
||
194 | public function getId()/*# : string */ |
||
208 | |||
209 | /** |
||
210 | * {@inheritDoc} |
||
211 | */ |
||
212 | public function newId() |
||
218 | |||
219 | /** |
||
220 | * {@inheritDoc} |
||
221 | */ |
||
222 | public function sessionData(/*# string */ $namespace)/*# : \ArrayObject */ |
||
234 | |||
235 | /** |
||
236 | * Throw RuntimeException if stopped |
||
237 | * |
||
238 | * @throws RuntimeException if session stopped |
||
239 | * @access protected |
||
240 | */ |
||
241 | protected function checkStopped() |
||
250 | |||
251 | protected function serializeData()/*# : string */ |
||
255 | } |
||
256 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.