| Total Complexity | 3 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Histogram |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Hardcode the size of each histogram bar, rather than letting it be determined algorithmically. |
||
| 12 | * |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $bucketSize; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Omit the thin divisions between the blocks of the histogram, making it into a series of solid bars. |
||
| 19 | * |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | protected $hideBucketItems; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * When calculating the histogram's bucket size, ignore the top and bottom lastBucketPercentile percent. |
||
| 26 | * |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | protected $lastBucketPercentile; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setBucketSize(int $bucketSize) |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function setHideBucketItems(bool $hideBucketItems) |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function setLastBucketPercentile(int $lastBucketPercentile) |
||
| 61 |