本文整理匯總了PHP中Value::getResult方法的典型用法代碼示例。如果您正苦於以下問題:PHP Value::getResult方法的具體用法?PHP Value::getResult怎麽用?PHP Value::getResult使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Value
的用法示例。
在下文中一共展示了Value::getResult方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: handle
/**
*
* @param Context $context
*/
public function handle(Context $context)
{
$string = new StringExpr();
$string->handle($context);
$this->key = $string->getResult();
$nameSeparator = new StructuralChar(array(":"));
$nameSeparator->handle($context);
$value = new Value();
$value->handle($context);
$this->value = $value->getResult();
}
示例2: handle
/**
*
* @param Context $context
* @throws DecodeException
*/
public function handle(Context $context)
{
$ws = WS::getInstance();
$ws->handle($context);
$value = new Value();
$value->handle($context);
$ws->handle($context);
if ($context->hasNext()) {
$current = $context->current();
$context->throwException("Unexpected character('{$current}')");
}
$this->result = $value->getResult();
}
示例3: handle
/**
*
* @param Context $context
*/
public function handle(Context $context)
{
$beginArray = new StructuralChar(array("["));
$beginArray->handle($context);
if ($context->current() === "]") {
$endArray = new StructuralChar(array("]"));
$endArray->handle($context);
$this->result = array();
return;
}
$result = array();
while (true) {
$value = new Value();
$value->handle($context);
$result[] = $value->getResult();
$struct = new StructuralChar(array(",", "]"));
$struct->handle($context);
if ($struct->getResult() === "]") {
$this->result = $result;
break;
}
}
}