Exemple #1
0
 public function __construct($_ = 0.0)
 {
     if (is_double($_) != true) {
         throw new \Exception();
     }
     parent::__construct($_);
 }
Exemple #2
0
 public function __construct($_ = false)
 {
     if (is_bool($_) != true) {
         throw new \Exception();
     }
     parent::__construct($_);
 }
Exemple #3
0
 public function __construct($_ = null)
 {
     if (is_null($_)) {
         $_ = 0;
     }
     if (is_string($_) != true) {
         throw new \Exception();
     }
     parent::__construct($_);
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct(null);
 }