Pinq\Expressions\IEvaluationContext::getVariableTable PHP Метод

getVariableTable() публичный Метод

Gets a map of values indexed by their respective variable name.
public getVariableTable ( ) : array
Результат array
    public function getVariableTable();

Usage Example

Пример #1
0
 protected function getVariableTable(array $customVariableTable = null)
 {
     //Loose equality: order is irrelevant
     if ($customVariableTable !== null && count(array_diff(array_keys($customVariableTable), $this->requiredVariables)) > 0) {
         throw new PinqException('Cannot evaluate expression: supplied variable table is invalid, variable names do not match the required variable names');
     }
     $contextVariableTable = $this->context->getVariableTable() ?: [];
     $customVariableTable = $customVariableTable ?: [];
     return $customVariableTable + $contextVariableTable;
 }
All Usage Examples Of Pinq\Expressions\IEvaluationContext::getVariableTable