| 1 | <?php |
||
| 8 | class Integer extends Packages implements PackageableInterface |
||
| 9 | { |
||
| 10 | |||
| 11 | protected $min; |
||
| 12 | protected $max; |
||
| 13 | |||
| 14 | public function setDefaults($defaultsArray = []) |
||
| 21 | |||
| 22 | protected function setMin($min) |
||
| 26 | |||
| 27 | protected function setMax($max) |
||
| 31 | |||
| 32 | private function generateDefaults() |
||
| 33 | { |
||
| 34 | if (empty($this->min)) { |
||
| 35 | self::setMin($this->setDefaults()['min']); |
||
| 36 | } |
||
| 37 | |||
| 38 | if (empty($this->max)) { |
||
| 39 | self::setMax($this->max = $this->setDefaults()['max']); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | private function generateInteger() |
||
| 48 | |||
| 49 | public function stringify() |
||
| 53 | } |
||
| 54 |