\DeviceAtlasProperties

Contains a map of names to Property objects. An instance of this class is returned by getProperties().

Summary

Methods
Properties
Constants
getIterator()
put()
putAll()
get()
containsKey()
isEmpty()
size()
count()
keySet()
toString()
__toString()
contains()
getOrDefaultString()
getOrDefaultInteger()
getOrDefaultBoolean()
getOrDefaultSet()
__isset()
__get()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$properties
N/A

Properties

$properties

$properties : 

Type

Methods

getIterator()

getIterator() 

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

put()

put(  $name,   $property) 

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
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

putAll()

putAll(  $properties) 

Parameters

$properties
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

get()

get(  $name) : \DeviceAtlas\Property

Returns the Property to which the specified name is mapped to, or null if there is no mapping for this name.

Parameters

$name
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\DeviceAtlas\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
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

boolean —

true if a Property exists for the specified key.

isEmpty()

isEmpty() : boolean

Returns true if there are no properties.

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

boolean —

true=if no properties exist.

size()

size() : integer

Returns the number of Property objects in this Properties Map.

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

integer —

the number of mappings in this map.

count()

count() 

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

keySet()

keySet() : array

Get the property names of the property set.

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

array —

Property names

toString()

toString() : string

Serialize properties to JSON.

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

string —

A serialized string of the properties.

__toString()

__toString() : string

Serialize properties to JSON.

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

string —

A serialized string of the properties.

contains()

contains(  $name,   $value) : boolean

Check if a property has a specific value.

Parameters

$name
$value
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

boolean —

true=the property value matched the expected value

getOrDefaultString()

getOrDefaultString(  $name,   $defaultValue) : string

The method returns the String property value for the specified property name, otherwise the $defaultValue is returned instead.

Parameters

$name
$defaultValue
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

string

getOrDefaultInteger()

getOrDefaultInteger(  $name,   $defaultValue) : integer

The method returns the Integer property value for the specified property name, otherwise the $defaultValue is returned instead.

Parameters

$name
$defaultValue
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

integer

getOrDefaultBoolean()

getOrDefaultBoolean(  $name,   $defaultValue) : boolean

The method returns the Boolean property value for the specified property name, otherwise the $defaultValue is returned instead.

Parameters

$name
$defaultValue
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

boolean

getOrDefaultSet()

getOrDefaultSet(  $name,   $defaultValue) : array

The method returns the Set property value for the specified property name, otherwise the defaultValue is returned instead.

Parameters

$name
$defaultValue
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

array

__isset()

__isset(  $name) : boolean

Returns true if the Properties contains a mapping for the specified name.

Parameters

$name
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

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

Parameters

$name
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

mixed —

The property typed value or null