IsNode.php 407 B

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