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