public function __construct($integer) { parent::__construct(); if (!Validator::isInt($integer)) { throw new IllegalArgumentException(); } $this->integer = $integer; }