public function addExpression(string $privilegeIdentifier, string $expression): void
    {
        $functionName = $this->generateExpressionFunctionName($privilegeIdentifier);
        $wrappedExpression = 'return ' . $expression . ';';
        $this->runtimeExpressionsCache->set($functionName, $wrappedExpression);
        $this->runtimeExpressions[$functionName] = eval($wrappedExpression);
    }
public function addExpression(string $privilegeIdentifier, string $expression): void
    {
        $functionName = $this->generateExpressionFunctionName($privilegeIdentifier);
        $wrappedExpression = 'return ' . $expression . ';';
        $this->runtimeExpressionsCache->set($functionName, $wrappedExpression);
        $this->runtimeExpressions[$functionName] = eval($wrappedExpression);
    }
public function addExpression ( string $ privilegeIdentifier , string $ expression ) : void { $ functionName = $ this -> generateExpressionFunctionName ( $ privilegeIdentifier ) ; $ wrappedExpression = 'return ' . $ expression . ';' ; $ this -> runtimeExpressionsCache -> set ( $ functionName , $ wrappedExpression ) ; $ this -> runtimeExpressions [ $ functionName ] = eval ( $ wrappedExpression ) ; }
Add expression to the evaluator

@param string $privilegeIdentifier MD5 hash that identifies a privilege
@param string $expression
@return void
Add expression to the evaluator