EndsWithNode.php 437 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Braintree;
  3. class EndsWithNode
  4. {
  5. public function __construct($name)
  6. {
  7. $this->name = $name;
  8. $this->searchTerms = [];
  9. }
  10. public function endsWith($value)
  11. {
  12. $this->searchTerms["ends_with"] = strval($value);
  13. return $this;
  14. }
  15. public function toParam()
  16. {
  17. return $this->searchTerms;
  18. }
  19. }
  20. class_alias('Braintree\EndsWithNode', 'Braintree_EndsWithNode');