Пример #1
0
 public function __construct($initial_value, $limit_down = null, $limit_up = null)
 {
     $this->setLimitDown($limit_down);
     $this->setLimitUp($limit_up);
     $this->setDiff(new Number(0));
     parent::__construct($initial_value);
 }
Пример #2
0
 /**
  * @param string $polarity
  */
 public function __construct($polarity = '+')
 {
     parent::__construct(0);
     if ($polarity == '+') {
         $this->setNegative(false);
     } else {
         $this->setNegative(true);
     }
 }
Пример #3
0
 /**
  * @param Number|String $value
  * Base value
  *
  * @param Number|String $limitUp
  * How much this number vary to up
  *
  * @param Number|String $limitDown
  * How much this number vary to down
  */
 public function __construct($value = 0, $limitUp = 0, $limitDown = 0)
 {
     parent::__construct($value);
     $this->setLimitUp($limitUp);
     $this->setLimitDown($limitDown);
 }
Пример #4
0
 public function __construct($value = 0, $locale = null)
 {
     parent::__construct($value);
     $this->locale = $locale;
 }