PPPStripeUtilSet

The Gravity Forms + Stripe PPP Stripe Util Set class.

Defined (1)

The class is defined in the following location(s).

/includes/api/stripe-php/lib/Util/Set.php  
  1. class Set implements IteratorAggregate 
  2. private $_elts; 
  3.  
  4. public function __construct($members = array()) 
  5. $this->_elts = array(); 
  6. foreach ($members as $item) { 
  7. $this->_elts[$item] = true; 
  8.  
  9. public function includes($elt) 
  10. return isset($this->_elts[$elt]); 
  11.  
  12. public function add($elt) 
  13. $this->_elts[$elt] = true; 
  14.  
  15. public function discard($elt) 
  16. unset($this->_elts[$elt]); 
  17.  
  18. public function toArray() 
  19. return array_keys($this->_elts); 
  20.  
  21. public function getIterator() 
  22. return new ArrayIterator($this->toArray());