Retrieve a pre-populated Transaction instance for sending to an alias.

@param string $alias
@param float  $value
@param string $message
@return self
@api
175063
public static function makeAliasSendInstance(string $alias, float $value, string $message = ''): self
    {
        $transaction = new self();

        $transaction->setVersion(Version::ALIAS_SEND);
        $transaction->setDestinationAddress($alias);
        $transaction->setValue($value);
        $transaction->setMessage($message);

        return $transaction;
    }
808065
function toMessage($message, $request = null)
    {
        $implicit = $message->isOpenID1();
        $added = $message->namespaces->addAlias($this->ns_uri,
                                                $this->ns_alias,
                                                $implicit);

        if ($added === null) {
            if ($message->namespaces->getAlias($this->ns_uri) !=
                $this->ns_alias) {
                return null;
            }
        }

        if ($request !== null) {
            $message->updateArgs($this->ns_uri,
                                 $this->getExtensionArgs($request));
        } else {
            $message->updateArgs($this->ns_uri,
                                 $this->getExtensionArgs());
        }
        return $message;
    }
485843
public function one($value,$rule,$message=[])
    {
        $this->clear();
        $this->from['one']=$value;
        $value=strtolower($rule);
        if(strpos($value, '|')===false){
            $rule=[$value];
        }else{
            $tmp=explode('|',$value);
            $rule=$tmp;
        }
        foreach ($message as $key=>$value){
            $keys=strtolower($key);
            $this->msge['one'][$keys]=$value;
        }
        return $this->checks('one',$rule);
    }
16737
public function set($alias, $value, $config = array())
	{
		$ttl = isset($config['ttl']) ? $config['ttl'] : 0;
		return xcache_set($alias,$value,$ttl);
	}
665036
protected function wrapAliasedValue($value, $prefixAlias = false)
    {
        $segments = preg_split('/\s+as\s+/i', $value);

        // If we are wrapping a table we need to prefix the alias with the table prefix
        // as well in order to generate proper syntax. If this is a column of course
        // no prefix is necessary. The condition will be true when from wrapTable.
        if ($prefixAlias) {
            $segments[1] = $this->tablePrefix.$segments[1];
        }

        return $this->wrap(
            $segments[0]).' as '.$this->wrapValue($segments[1]
        );
    }
738938
public static function value($alias,$value=''){
        if (isset(self::$pool[$alias])) {
            return self::$pool[$alias];
        }
        //value('name','hello',function ($hello){});
        //value('name',function (){});
        //value('name',new Hook());
        //value('name',2);
        //value('name',[]);
        //获取参数数量
        $num = func_num_args();

        if($num<3) {
            $value = ($value instanceof \Closure)?$value():$value;
        }
        elseif($num == 3) {
            $func = func_get_arg(2);
            $value = $func($value);
        }
        else {
            $args = func_get_args();
            $alias = $args[0];
            $value = $args[--$num];
            unset($args[0]);
            unset($args[$num]);
            $value = call_user_func_array($value,$args);
        }

        //固化
        if(in_array($alias,Config::$o->pool)) {
            self::$solidify[$alias] = $value;
        }

        return self::$pool[$alias] = $value;
    }
218685
public static function isCallable($value, $message = null)
    {
        if (!is_callable($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected callable, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
1333947
public function setTransferInfo(\AgentSIB\Diadoc\Api\Proto\Invoicing\TransferInfo $value = null)
    {
        $this->TransferInfo = $value;
    }
1194421
public static function hash($alias,$key,$value=''){
        if(isset(self::$pool[$alias]) && isset(self::$pool[$alias][$key])) {
            return self::$pool[$alias][$key];
        }
        if($value instanceof \Closure){
            $value = $value();
        }
        return self::$pool[$alias][$key] = $value;
    }
544403
public function setRejectedBeforeTransactionProcessPolicy($value): self
    {
        if (!in_array($value, self::rejectedBeforeTransactionProcessPolicies(), true)) {
            throw new DomainException(sprintf(self::UNEXPECTED_POLICY, implode(', ', self::rejectedBeforeTransactionProcessPolicies())));
        }

        return $this->setAttribute('rejectedBeforeTransactionProcessPolicy', $value);
    }
755537
public function setAlias($alias)
    {
        if (!is_string($alias)) {
            throw new Exception(Exception::CODE_PARAM_VALUE_ERROR_MSG . ' Alias Must A String', Exception::CODE_PARAM_VALUE_ERROR);
        }
        $lastPattern = array_pop($this->_patterns);
        if ($lastPattern) {
            $lastPattern[5] = $alias;
            $this->_patterns[] = $lastPattern;
        }
        return $this;
    }
153910
protected function parseIsRefreshGrantEnabled(string $value): Client
    {
        $value === '1' ? $this->enableRefreshGrant() : $this->disableRefreshGrant();

        return $this;
    }
882411
public function handlerAlias($name, $value = null)
    {
        $alias = is_array($name) ? $name : [$name => $value];
        $this->handlerAlias = $alias + $this->handlerAlias;
    }
1344070
final public function withHeader($name, $value): self
    {
        $message = clone $this;

        //Make sure to remove the current header with the same
        //name to avoid casing-duplication (location, Location, LOCATION)
        if ($message->hasHeader($name)) {
            $message = $message->withoutHeader($name);
        }

        $message->addHeaders([$name => $value]);
        return $message;
    }
1323708
public function getValueOrPlaceholder($value, TransactionData $transactiondata)
    {
        return preg_replace_callback(
            '/\{\{\s*(var|uri|get|post|header|cookie|method)(?:\.([a-z0-9-_]+))?\s*\}\}/i',
            function ($matches) use ($transactiondata) {
                return $this->getValueFromPlaceholder(
                    $matches[1],
                    isset($matches[2]) ? $matches[2] : null,
                    $transactiondata
                );
            },
            $value
        );
    }
1234367
public function addTransferBase(\AgentSIB\Diadoc\Api\Proto\Invoicing\TransferBase $value)
    {
        if ($this->TransferBase === null) {
            $this->TransferBase = new \Protobuf\MessageCollection();
        }

        $this->TransferBase->add($value);
    }
1214927
public function select($column, string $alias = null): self
    {
        if (\is_string($column)) {
            if (\strpos($column, ',')) {
                $this->select = \array_merge($this->select, \array_filter(\explode(',', $column)));
            } else {
                $this->select[$column] = $alias;
            }
        } elseif (\is_array($column)) {
            foreach ($column as $col => $ali) {
                if (\is_numeric($col)) {
                    $this->select[$ali] = null;
                } else {
                    $this->select[$col] = $ali;
                }
            }
        }

        return $this;
    }