abstract class BaseFloat extends BaseScalar

Class BaseFloat

Properties

protected $value

Methods

bool
equals(ValueObject $valueObject)

Compare if a ValueObject is of the same type and identical value.

__construct(float $value)

BaseFloat constructor.

void
setValue(float $value)

In this method you must add all the necessary validations.

value()

Return the scalar value.

Details

in BaseScalar at line 14
bool equals(ValueObject $valueObject)

Compare if a ValueObject is of the same type and identical value.

Parameters

ValueObject $valueObject

Return Value

bool

at line 18
__construct(float $value)

BaseFloat constructor.

Parameters

float $value

at line 29
abstract protected void setValue(float $value)

In this method you must add all the necessary validations.

Parameters

float $value

Return Value

void

at line 36
value()

Return the scalar value.