Example #1
0
 public function __construct($double = 0.0)
 {
     parent::__construct();
     if (!Validator::isDouble($double)) {
         throw new IllegalArgumentException();
     }
     $this->double = $double;
 }