Blueprints/src/BlueprintForm.php
public function extend($extends, $append = false)
    {
        if ($extends instanceof self) {
            $extends = $extends->toArray();
        }

        if ($append) {
            $a = $this->items;
            $b = $extends;
        } else {
            $a = $extends;
            $b = $this->items;
        }

        $this->items = $this->deepMerge($a, $b);

        return $this;
    }
public function extend($extends, $append = false)
    {
        if ($extends instanceof self) {
            $extends = $extends->toArray();
        }

        if ($append) {
            $a = $this->items;
            $b = $extends;
        } else {
            $a = $extends;
            $b = $this->items;
        }

        $this->items = $this->deepMerge($a, $b);

        return $this;
    }
public function extend ( $ extends , $ append = false ) { if ( $ extends instanceof self ) { $ extends = $ extends -> toArray ( ) ; } if ( $ append ) { $ a = $ this -> items ; $ b = $ extends ; } else { $ a = $ extends ; $ b = $ this -> items ; } $ this -> items = $ this -> deepMerge ( $ a , $ b ) ; return $ this ; }
Extend blueprint with another blueprint.

@param BlueprintForm|array $extends
@param bool $append
@return $this
Extend blueprint with another blueprint .