Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c23a6d6

Browse filesBrowse files
committed
Merge branch '4.2' into 4.3
* 4.2: fixed indention
2 parents 3e0f67a + 7c2d332 commit c23a6d6
Copy full SHA for c23a6d6

File tree

1 file changed

+27
-28
lines changed
Filter options

1 file changed

+27
-28
lines changed

‎components/property_info.rst

Copy file name to clipboardExpand all lines: components/property_info.rst
+27-28Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ containing each property name as a string::
149149

150150
$properties = $propertyInfo->getProperties($class);
151151
/*
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+
}
159159
*/
160160

161161
.. _property-info-type:
@@ -168,21 +168,20 @@ provide :ref:`extensive data type information <components-property-info-type>`
168168
for a property::
169169

170170
$types = $propertyInfo->getTypes($class, $property);
171-
172171
/*
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+
}
184184
}
185-
}
186185
*/
187186

188187
See :ref:`components-property-info-type` for info about the ``Type`` class.
@@ -198,18 +197,18 @@ strings::
198197

199198
$title = $propertyInfo->getShortDescription($class, $property);
200199
/*
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."
204203
*/
205204

206205
$paragraph = $propertyInfo->getLongDescription($class, $property);
207206
/*
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.
213212
*/
214213

215214
.. _property-info-access:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.