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