>>225
Javaみたいにラッパークラスを作ってしまえばいいかもしれんな。

final class Integer extends Number {
 $private $value;
 __construct($value){
  if($valueがint型であれば){
   $this->value = $value;
  } else {
   throw new NumberFormatException("整数以外入力するんじゃねえぞこのバカ野郎氏ね!");
  }
 }
}