/**
  * Sets the number of results per page
  *
  * @param int $pageSize The requested page size
  * @return $this
  * @throws IntercomException If the page size is not between 1 and 60
  */
 public function setPageSize($pageSize)
 {
     if ($pageSize < 1 || $pageSize > 60) {
         throw new IntercomException('Page size on the iterator must be between 1 and 60');
     }
     return parent::setPageSize($pageSize);
 }
 public function next()
 {
     $this->calledNext++;
     parent::next();
 }
Example #3
0
 public function testDescribesEvents()
 {
     $this->assertInternalType('array', ResourceIterator::getAllEvents());
 }
Example #4
0
 /**
  * {@inheritDoc}
  */
 public function __construct(CommandInterface $command, array $data = [])
 {
     parent::__construct($command, $data);
     $this->pageSize = 20;
 }
 /**
  * @param CommandInterface $command
  * @param array            $data
  */
 public function __construct(CommandInterface $command, array $data = [])
 {
     parent::__construct($command, $data);
     $this->pageSize = 100;
     // This is the maximum allowed by Stripe
 }