Associates the specified Property with the specified name. If a Property
for this name currently exists it will be replaced by the new value.
Parameters
$name
$property
get()
get( $name) : \Property
Returns the Property to which the specified name is mapped to, or null if
there is no mapping for this name.
Parameters
$name
Returns
\Property
—
The value to which the specified name is mapped to, or null if the map contains no mapping for this name.
containsKey()
containsKey( $name) : boolean
Returns true if the Properties contains a mapping for the specified name.
Parameters
$name
Returns
boolean
—
true if a Property exists for the specified key.
isEmpty()
isEmpty() : boolean
Returns true if there are no properties.
Returns
boolean
—
true=if no properties exist.
size()
size() : integer
Returns the number of Property objects in this Properties Map.
Returns
integer
—
the number of mappings in this map.
keySet()
keySet() : array
Get the property names of the property set.
Returns
array
—
Property names
toString()
toString() : string
Serialize properties to JSON.
Returns
string
—
A serialized string of the properties.
__toString()
__toString() : string
Serialize properties to JSON.
Returns
string
—
A serialized string of the properties.
contains()
contains( $name, $value) : boolean
Check if a property has a specific value.
Parameters
$name
$value
Returns
boolean
—
true=the property value matched the expected value
__isset()
__isset( $name) : boolean
Returns true if the Properties contains a mapping for the specified name.
Parameters
$name
Returns
boolean
—
true if a Property exists for the specified key.
__get()
__get( $name) : mixed
Returns the property value, the data type of the value is set proper data
type as defined for the property. If property does not exist null will be
returned