Attributes and methods |
.toStringMethod(EntityInContext entity, List attributes, int indentationLevel) : String
Returns a string containing all the code for a PHP '__toString()' method
Generates a '__toString' method using the given attributes
(except non-printable attributes)
Indent with tabs (1 tab for each indentation level)
Parameters :
entity : the entity for which to generate the 'ToString' method
attributes : list of attributes to be used in the 'ToString' method
indentationLevel : initial indentation level
Example :
$php.toStringMethod( $entity, $attributes, 2 )
Since : 4.1.0
|
.toStringMethod(EntityInContext entity, List attributes, int indentationLevel, String indentationString) : String
Returns a string containing all the code for a PHP '__toString()' method
Generates a '__toString' method using the given attributes
(except non-printable attributes)
Indentation with spaces (1 'indentationString' for each indentation level)
Parameters :
entity : the entity for which to generate the 'ToString' method
attributes : list of attributes to be used in the 'ToString' method
indentationLevel : initial indentation level
indentationString : string to use for each indentation (usually N spaces)
Example :
$php.toStringMethod( $entity, $attributes, 2, ' ' )
Since : 4.1.0
|
.toStringMethod(EntityInContext entity, int indentationLevel) : String
Returns a string containing all the code for a PHP '__toString()' method
Generates a '__toString' method using all the attributes of the given entity
(except non-printable attributes)
Indentation with tabs (1 tab for each indentation level)
Parameters :
entity : the entity for which to generate the 'ToString' method
indentationLevel : initial indentation level
Example :
$php.toStringMethod( $entity, 2 )
Since : 4.1.0
|
.toStringMethod(EntityInContext entity, int indentationLevel, String indentationString) : String
Returns a string containing all the code for a PHP '__toString()' method
Generates a '__toString' method using all the attributes of the given entity
(except non-printable attributes)
Indentation with spaces (1 'indentationString' for each indentation level)
Parameters :
entity : the entity for which to generate the 'ToString' method
indentationLevel : initial indentation level
indentationString : string to use for each indentation (usually N spaces)
Example :
$php.toStringMethod( $entity, 2, ' ' )
Since : 4.1.0
|