public function __construct($counter) { if (!is_int($counter)) { throw new LogicException('SkipFirstFilter expects an integer as first argument'); } $this->counter = $counter; }