@@ -144,13 +144,13 @@ containing each property name as a string::
144
144
145
145
$properties = $propertyInfo->getProperties($class);
146
146
/*
147
- Example Result
148
- --------------
149
- array(3) {
150
- [0] => string(8) "username"
151
- [1] => string(8) "password"
152
- [2] => string(6) "active"
153
- }
147
+ Example Result
148
+ --------------
149
+ array(3) {
150
+ [0] => string(8) "username"
151
+ [1] => string(8) "password"
152
+ [2] => string(6) "active"
153
+ }
154
154
*/
155
155
156
156
.. _property-info-type :
@@ -163,21 +163,20 @@ provide :ref:`extensive data type information <components-property-info-type>`
163
163
for a property::
164
164
165
165
$types = $propertyInfo->getTypes($class, $property);
166
-
167
166
/*
168
- Example Result
169
- --------------
170
- array(1) {
171
- [0] =>
172
- class Symfony\Component\PropertyInfo\Type (6) {
173
- private $builtinType => string(6) "string"
174
- private $nullable => bool(false)
175
- private $class => NULL
176
- private $collection => bool(false)
177
- private $collectionKeyType => NULL
178
- private $collectionValueType => NULL
167
+ Example Result
168
+ --------------
169
+ array(1) {
170
+ [0] =>
171
+ class Symfony\Component\PropertyInfo\Type (6) {
172
+ private $builtinType => string(6) "string"
173
+ private $nullable => bool(false)
174
+ private $class => NULL
175
+ private $collection => bool(false)
176
+ private $collectionKeyType => NULL
177
+ private $collectionValueType => NULL
178
+ }
179
179
}
180
- }
181
180
*/
182
181
183
182
See :ref: `components-property-info-type ` for info about the ``Type `` class.
@@ -193,18 +192,18 @@ strings::
193
192
194
193
$title = $propertyInfo->getShortDescription($class, $property);
195
194
/*
196
- Example Result
197
- --------------
198
- string(41) "This is the first line of the DocComment."
195
+ Example Result
196
+ --------------
197
+ string(41) "This is the first line of the DocComment."
199
198
*/
200
199
201
200
$paragraph = $propertyInfo->getLongDescription($class, $property);
202
201
/*
203
- Example Result
204
- --------------
205
- string(79):
206
- These is the subsequent paragraph in the DocComment.
207
- It can span multiple lines.
202
+ Example Result
203
+ --------------
204
+ string(79):
205
+ These is the subsequent paragraph in the DocComment.
206
+ It can span multiple lines.
208
207
*/
209
208
210
209
.. _property-info-access :
0 commit comments