Pinq\Queries\Functions\IFunction::update PHP Method

update() public method

public update ( string | null $scopeType, string | null $namespace, array $parameterScopedVariableMap, array $parameterExpressions, array $bodyExpressions = null ) : static
$scopeType string | null
$namespace string | null
$parameterScopedVariableMap array
$parameterExpressions array
$bodyExpressions array
return static
    public function update($scopeType, $namespace, array $parameterScopedVariableMap, array $parameterExpressions, array $bodyExpressions = null);

Usage Example

 public function processFunction(IFunction $function)
 {
     $parameterScopeVariableMap = array_map(function ($variable) {
         return $this->prefix . $variable;
     }, $function->getParameterScopedVariableMap());
     return $function->update($function->getScopeType(), $function->getNamespace(), $parameterScopeVariableMap, $this->walkAll($function->getParameters()->getAll()), $this->walkAll($function->getBodyExpressions()));
 }
All Usage Examples Of Pinq\Queries\Functions\IFunction::update