public function __construct($source, $toSkip) { parent::__construct($source); if ($toSkip < 0) { throw new InvalidArgumentException("To skip should be >= 0."); } $this->toSkip = $toSkip; }