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