Bucket
in package
implements
Countable
FinalYes
Bucket histogram.
Table of Contents
Interfaces
- Countable
Properties
Methods
- __construct() : mixed
- add() : $this
- count() : int
- Get the number of elements in the bucket.
Properties
$count
private
int
$count
$range
private
Range
$range
Methods
__construct()
public
__construct(Range $range[, int $count = 0 ]) : mixed
Parameters
- $range : Range
- $count : int = 0
add()
public
add(int $value) : $this
Parameters
- $value : int
Return values
$thiscount()
Get the number of elements in the bucket.
public
count() : int