MultipleValueOrTextNode.php
988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace Braintree;
class MultipleValueOrTextNode extends MultipleValueNode
{
public function __construct($name)
{
parent::__construct($name);
$this->textNode = new TextNode($name);
}
public function contains($value)
{
$this->textNode->contains($value);
return $this;
}
public function endsWith($value)
{
$this->textNode->endsWith($value);
return $this;
}
public function is($value)
{
$this->textNode->is($value);
return $this;
}
public function isNot($value)
{
$this->textNode->isNot($value);
return $this;
}
public function startsWith($value)
{
$this->textNode->startsWith($value);
return $this;
}
public function toParam()
{
return array_merge(parent::toParam(), $this->textNode->toParam());
}
}
class_alias('Braintree\MultipleValueOrTextNode', 'Braintree_MultipleValueOrTextNode');