Example #1
0
 /**
  * @param float $value
  * @return $this
  */
 public function setValue($value)
 {
     if (!is_float($value)) {
         throw InvalidArgumentException::floatRequired();
     }
     $this->value = $value;
     return $this;
 }