Пример #1
0
 /**
  * Creates a new instance of a throwable object.
  *
  * @param blaze\lang\String|string $message The error message.
  * @param blaze\lang\Integer|int $code The error code.
  * @param blaze\lang\Throwable $previous The th
  */
 public function __construct($message = null, $code = null, $previous = null)
 {
     parent::__construct(String::asNative($message), Integer::asNative($code), $previous);
     if ($previous != null && !$previous instanceof Throwable) {
         new IllegalArgumentException('Previous element must be a subtype of Throwable', 0, $this);
     }
 }
Пример #2
0
 public function intValue()
 {
     return Integer::asNative($this->value);
 }
Пример #3
0
 public static function getIntHash($value)
 {
     $value = Integer::asNative($value);
     return $value;
 }