public function addChild(PartBuilder $partBuilder)
    {
        $partBuilder->parent = $this;
        // discard parts added after the end boundary
        if (!$this->endBoundaryFound) {
            $this->children[] = $partBuilder;
        }
    }
public function addChild(PartBuilder $partBuilder)
    {
        $partBuilder->parent = $this;
        // discard parts added after the end boundary
        if (!$this->endBoundaryFound) {
            $this->children[] = $partBuilder;
        }
    }
public function addChild ( PartBuilder $ partBuilder ) { $ partBuilder -> parent = $ this ; // discard parts added after the end boundary if ( ! $ this -> endBoundaryFound ) { $ this -> children [ ] = $ partBuilder ; } }
Registers the passed PartBuilder as a child of the current PartBuilder.

@param \ZBateson\MailMimeParser\Message\PartBuilder $partBuilder
Registers the passed PartBuilder as a child of the current PartBuilder .