public function copy($type = null)
    {
        $builder = new Builder($this->type, $this->dogmatist, $this->parent, $this->strict);
        $this->copyData($builder);

        if ($type !== null) {
            $builder->setType($type);
        }

        return $builder;
    }
public function copy($type = null)
    {
        $builder = new Builder($this->type, $this->dogmatist, $this->parent, $this->strict);
        $this->copyData($builder);

        if ($type !== null) {
            $builder->setType($type);
        }

        return $builder;
    }
public function copy ( $ type = null ) { $ builder = new Builder ( $ this -> type , $ this -> dogmatist , $ this -> parent , $ this -> strict ) ; $ this -> copyData ( $ builder ) ; if ( $ type !== null ) { $ builder -> setType ( $ type ) ; } return $ builder ; }
Returns a clone for the current builder
@param string $type The new type of the cloned builder.
@return $this
Returns a clone for the current builder