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