vendor/braintree/braintree_php/lib/Braintree/RangeNode.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Braintree;
/**
* Braintree RangeNode
* RangeNode is an object for numerical elements returned from the Braintree API
*/
class RangeNode
{
// phpcs:ignore PEAR.Commenting.FunctionComment.Missing
public function __construct($name)
{
$this->name = $name;
$this->searchTerms = [];
}
/**
* Sets the "min" value for search terms.
*
* @param string $value to be set for search terms
*
* @return object
*/
public function greaterThanOrEqualTo($value)
{
$this->searchTerms['min'] = $value;
return $this;
}
/**
* Sets the "mixn" value for search terms.
*
* @param string $value to be set for search terms
*
* @return object
*/
public function lessThanOrEqualTo($value)
{
$this->searchTerms['max'] = $value;
return $this;
}
/**
* Sets the "is" value for search terms.
*
* @param string $value to be set for search terms
*
* @return object
*/
public function is($value)
{
$this->searchTerms['is'] = $value;
return $this;
}
/**
* Sets the "min" and "max" value for search terms.
*
* @param string $min minimum value to be set for search terms
后面还有 19 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
