class WeightedValue implements Comparable

Constants

DEFAULT_WEIGHT

Methods

__construct($value, float $weight = self::DEFAULT_WEIGHT)

No description

static WeightedValue
parse(string $expression)

No description

float
getWeight()

No description

setWeight(float $weight)

No description

getValue()

No description

setValue($value)

No description

int
compareTo(object $other)

No description

Details

at line 34
__construct($value, float $weight = self::DEFAULT_WEIGHT)

No description

Parameters

$value
float $weight

at line 39
static WeightedValue parse(string $expression)

No description

Parameters

string $expression

Return Value

WeightedValue

at line 53
float getWeight()

No description

Return Value

float

at line 57
WeightedValue setWeight(float $weight)

No description

Parameters

float $weight

Return Value

WeightedValue

at line 63
getValue()

No description

at line 67
WeightedValue setValue($value)

No description

Parameters

$value

Return Value

WeightedValue

at line 77
int compareTo(object $other)

No description

Parameters

object $other

Return Value

int