public function __construct(ScrollerInterface $scroller, array $config)
 {
     if (!empty($config['nextPageFlag'])) {
         if (empty($config['nextPageFlag']['field'])) {
             throw new UserException("'field' has to be specified for 'nextPageFlag'");
         }
         if (!isset($config['nextPageFlag']['stopOn'])) {
             throw new UserException("'stopOn' value must be set to a boolean value for 'nextPageFlag'");
         }
         if (!isset($config['nextPageFlag']['ifNotSet'])) {
             $config['nextPageFlag']['ifNotSet'] = $config['nextPageFlag']['stopOn'];
         }
         $this->nextPageFlag = $config['nextPageFlag'];
     }
     parent::__construct($scroller, $config);
 }
 public function reset()
 {
     $this->pageCounter = 0;
     $this->volumeCounter = 0;
     $this->startTime = time();
     return parent::reset();
 }