-
Notifications
You must be signed in to change notification settings - Fork 0
How it works?
Rafael Santos edited this page Jul 1, 2016
·
3 revisions
This library only use phpDocBloc common properties like @var
and try to resolve the type of data or related object.
/** @var integer **/
$property
Type | Description |
---|---|
integer | Primitive integer |
int | Primitive integer |
boolean | Primitive boolean |
bool | Primitive boolean |
float | Primitive float |
double | Primitive float |
string | Primitive string |
array | An array with arbitrary keys, and values. |
<Object> | Instance of object. The <Object> should be the class to use. |
array|<type>[] | Array of <Type>. The <type> should be one scalar type. |
array|<Object>[] | Array of <Object> instance. The <Object> should be the class to use. |
array|<Object>[]|[] | issue #1 |
DateTime | Instance of \DateTime class |
See Parsers
By default property names are compared using some versions of the same property name.
$propertyName -> 'propertyName' -> 'property_name' -> propertyname
See Matchers
Bu default setters methods are required to set the property value, otherwise the property is not settled.
public function setPropertyName()
See Writers