public function __construct($max, HandlerInterface $handler = null) { $this->max = (int) $max; parent::__construct($handler); }