Adds (defines) a specific property and its type.
public addProperty ( string $name, string $type, boolean $lazy = false, boolean $transient = false ) : void | ||
$name | string | Name of the property |
$type | string | Type of the property |
$lazy | boolean | Whether the property should be lazy-loaded when reconstituting |
$transient | boolean | Whether the property should not be considered for persistence |
return | void |