Example #1
0
 /**
  * @param  array $set
  * @param  Fraction|numeric $value
  */
 function __construct(array $set, $value)
 {
     parent::__construct($set);
     $this->value = Fraction::create($value);
 }
Example #2
0
 /**
  * @param  string $var
  * @param  array $set
  * @param  Fraction|numeric $b
  */
 function __construct($var, array $set, $b)
 {
     parent::__construct($set);
     $this->var = (string) $var;
     $this->b = Fraction::create($b);
 }
 /**
  * @param  array $set
  * @param  int $type
  * @param  Fraction|numeric $limit
  */
 function __construct(array $set, $type, $limit)
 {
     parent::__construct($set);
     $this->type = (int) $type;
     $this->limit = Fraction::create($limit);
 }