VariableNode example

$this->assertEquals($expected$normalized);
    }

    public static function getDataForKeyRemovedLeftValueOnly(): array
    {
        $scalarValue = new ScalarNode('value');

        $arrayValue = new ArrayNode('value');
        $arrayValue->addChild(new ScalarNode('foo'));
        $arrayValue->addChild(new ScalarNode('bar'));

        $variableValue = new VariableNode('value');

        return [
           [
               $scalarValue,
               [
                   ['id' => 'option1', 'value' => 'value1'],
               ],
               ['option1' => 'value1'],
           ],

           [
               

class VariableNodeDefinition extends NodeDefinition
{
    /** * Instantiate a Node. */
    protected function instantiateNode(): VariableNode
    {
        return new VariableNode($this->name, $this->parent, $this->pathSeparator);
    }

    protected function createNode(): NodeInterface
    {
        $node = $this->instantiateNode();

        if (isset($this->normalization)) {
            $node->setNormalizationClosures($this->normalization->before);
        }

        if (isset($this->merge)) {
            
Home | Imprint | This part of the site doesn't use cookies.