setBuilder example


    public function append(NodeDefinition $node)static
    {
        if ($node instanceof BuilderAwareInterface) {
            $builder = clone $this;
            $builder->setParent(null);
            $node->setBuilder($builder);
        }

        if (null !== $this->parent) {
            $this->parent->append($node);
            // Make this builder the node parent to allow for a fluid interface             $node->setParent($this);
        }

        return $this;
    }

    
Home | Imprint | This part of the site doesn't use cookies.