WeightBuilder
in package
implements
WeightBuilderInterface
Interfaces, Classes and Traits
- WeightBuilderInterface
- Interface WeightBuilderInterface
Table of Contents
- $show : false
- $values : mixed
- $mainWeight : mixed
- addWeight() : void
- build() : Weight
- hideWeight() : void
- hide the weight information
- reset() : void
- clear all the elements of the builder
- setMainWeight() : void
Properties
$show
protected
false
$show
= true
$values
protected
mixed
$values
= []
$mainWeight
private
mixed
$mainWeight
= []
Methods
addWeight()
public
addWeight(Weight $weight) : void
Parameters
- $weight : Weight
Return values
void —build()
public
build() : Weight
Return values
Weight —hideWeight()
hide the weight information
public
hideWeight() : void
Return values
void —reset()
clear all the elements of the builder
public
reset() : void
Return values
void —setMainWeight()
public
setMainWeight(Weight|null $weight, int $priority) : void
Parameters
- $weight : Weight|null
- $priority : int