Skip to content

fixed indention #11553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 27 additions & 28 deletions components/property_info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ containing each property name as a string::

$properties = $propertyInfo->getProperties($class);
/*
Example Result
--------------
array(3) {
[0] => string(8) "username"
[1] => string(8) "password"
[2] => string(6) "active"
}
Example Result
--------------
array(3) {
[0] => string(8) "username"
[1] => string(8) "password"
[2] => string(6) "active"
}
*/

.. _property-info-type:
Expand All @@ -163,21 +163,20 @@ provide :ref:`extensive data type information <components-property-info-type>`
for a property::

$types = $propertyInfo->getTypes($class, $property);

/*
Example Result
--------------
array(1) {
[0] =>
class Symfony\Component\PropertyInfo\Type (6) {
private $builtinType => string(6) "string"
private $nullable => bool(false)
private $class => NULL
private $collection => bool(false)
private $collectionKeyType => NULL
private $collectionValueType => NULL
Example Result
--------------
array(1) {
[0] =>
class Symfony\Component\PropertyInfo\Type (6) {
private $builtinType => string(6) "string"
private $nullable => bool(false)
private $class => NULL
private $collection => bool(false)
private $collectionKeyType => NULL
private $collectionValueType => NULL
}
}
}
*/

See :ref:`components-property-info-type` for info about the ``Type`` class.
Expand All @@ -193,18 +192,18 @@ strings::

$title = $propertyInfo->getShortDescription($class, $property);
/*
Example Result
--------------
string(41) "This is the first line of the DocComment."
Example Result
--------------
string(41) "This is the first line of the DocComment."
*/

$paragraph = $propertyInfo->getLongDescription($class, $property);
/*
Example Result
--------------
string(79):
These is the subsequent paragraph in the DocComment.
It can span multiple lines.
Example Result
--------------
string(79):
These is the subsequent paragraph in the DocComment.
It can span multiple lines.
*/

.. _property-info-access:
Expand Down