BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
DataValues\NumberValue Class Reference
Inheritance diagram for DataValues\NumberValue:
Collaboration diagram for DataValues\NumberValue:

Public Member Functions

 __construct ($value)
 
 serialize ()
 
 unserialize ($value)
 
 getSortKey ()
 
 getValue ()
 
- Public Member Functions inherited from DataValues\DataValueObject
 getHash ()
 
 equals ($value)
 
 getCopy ()
 
 getArrayValue ()
 
 toArray ()
 

Static Public Member Functions

static getType ()
 
static newFromArray ($data)
 

Additional Inherited Members

- Static Protected Member Functions inherited from DataValues\DataValueObject
static requireArrayFields ($data, array $fields)
 

Detailed Description

Class representing a simple numeric value.

More complex numeric values that have associated info such as unit and accuracy can be represented with a

See Also
QuantityValue.
Since
0.1

GNU GPL v2+

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Constructor & Destructor Documentation

DataValues\NumberValue::__construct (   $value)
Parameters
int | float$value
Exceptions
IllegalValueException

Member Function Documentation

DataValues\NumberValue::getSortKey ( )
See Also
DataValue::getSortKey
Returns
int|float

Implements DataValues\DataValue.

static DataValues\NumberValue::getType ( )
static
See Also
DataValue::getType
Returns
string

Implements DataValues\DataValue.

DataValues\NumberValue::getValue ( )

Returns the number.

See Also
DataValue::getValue
Returns
int|float

Implements DataValues\DataValue.

static DataValues\NumberValue::newFromArray (   $data)
static

Constructs a new instance of the DataValue from the provided data. This can round-trip with

See Also
getArrayValue
Since
0.1
Parameters
int | float$data
Returns
NumberValue
DataValues\NumberValue::serialize ( )
See Also
Serializable::serialize
Returns
string

Implements Serializable.

DataValues\NumberValue::unserialize (   $value)
See Also
Serializable::unserialize
Parameters
string$value
Returns
NumberValue

Implements Serializable.


The documentation for this class was generated from the following file: