__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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 ConstantNode extends Node { public readonly bool $isNullSafe; private bool $isIdentifier; public function __construct(mixed $value, bool $isIdentifier = false, bool $isNullSafe = false) { $this->isIdentifier = $isIdentifier; $this->isNullSafe = $isNullSafe; parent::__construct( [], ['value' => $value] ); } public function compile(Compiler $compiler): void { $compiler->repr($this->attributes['value']); } public function evaluate(array $functions, array $values): mixed { return $this->attributes['value']; } public function toArray(): array { $array = []; $value = $this->attributes['value']; if ($this->isIdentifier) { $array[] = $value; } elseif (true === $value) { $array[] = 'true'; } elseif (false === $value) { $array[] = 'false'; } elseif (null === $value) { $array[] = 'null'; } elseif (is_numeric($value)) { $array[] = $value; } elseif (!\is_array($value)) { $array[] = $this->dumpString($value); } elseif ($this->isHash($value)) { foreach ($value as $k => $v) { $array[] = ', '; $array[] = new self($k); $array[] = ': '; $array[] = new self($v); } $array[0] = '{'; $array[] = '}'; } else { foreach ($value as $v) { $array[] = ', '; $array[] = new self($v); } $array[0] = '['; $array[] = ']'; } return $array; } }
| 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 |
|