repente

Untitled

Jun 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2.  
  3. namespace My\Dice;
  4.  
  5. /**
  6. * A trait implementing HistogramInterface.
  7. */
  8. trait DiceHistogramTrait
  9. {
  10. /**
  11. * @var array $serie The numbers stored in sequence.
  12. */
  13. private $serie = [];
  14.  
  15.  
  16.  
  17. /**
  18. * Get the serie.
  19. *
  20. * @return array with the serie.
  21. */
  22. public function getHistogramSerie()
  23. {
  24. return $this->serie;
  25. }
  26.  
  27.  
  28.  
  29. /**
  30. * Get min value for the histogram.
  31. *
  32. * @return int with the min value.
  33. */
  34. public function getHistogramMin()
  35. {
  36. return 1;
  37. }
  38.  
  39.  
  40.  
  41. /**
  42. * Get max value for the histogram.
  43. *
  44. * @return int with the max value.
  45. */
  46. public function getHistogramMax()
  47. {
  48. return 6;
  49. }
  50. }
Add Comment
Please, Sign In to add comment