public function embed(IStagedForm $embeddedForm) : StagedForm
    {
        foreach ($embeddedForm->getAllStages() as $stage) {
            $this->followingStages[] = $stage;
        }

        return $this;
    }
public function embed(IStagedForm $embeddedForm) : StagedForm
    {
        foreach ($embeddedForm->getAllStages() as $stage) {
            $this->followingStages[] = $stage;
        }

        return $this;
    }
public function embed ( IStagedForm $ embeddedForm ) : StagedForm { foreach ( $ embeddedForm -> getAllStages ( ) as $ stage ) { $ this -> followingStages [ ] = $ stage ; } return $ this ; }
Embeds the supplied staged form within the current staged form.

@param IStagedForm $embeddedForm

@return StagedForm
Embeds the supplied staged form within the current staged form .