trait WeightTrait

Class WeightTrait.

Methods

$this
setWeight( int $weight)

No description

int
getWeight()

Get weight.

bool
hasWeight()

No description

$this
clearWeight()

No description

$this
incrementWeight( int $by = 1)

No description

$this
decrementWeight( int $by = 1)

No description

Details

at line line 30
$this setWeight( int $weight)

Parameters

int $weight

Return Value

$this

at line line 42
int getWeight()

Get weight.

Return Value

int

at line line 50
bool hasWeight()

Return Value

bool

at line line 58
$this clearWeight()

Return Value

$this

at line line 70
$this incrementWeight( int $by = 1)

Parameters

int $by

Return Value

$this

at line line 82
$this decrementWeight( int $by = 1)

Parameters

int $by

Return Value

$this