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