src/Amadeus/Client/Struct/Fop/MopDescription.php
protected function loadMopDetails(MopInfo $options)
    {
        $this->mopDetails = new MopDetails();

        if ($this->checkAnyNotEmpty($options->fopCode, $options->fopStatus)) {
            $this->mopDetails->fopPNRDetails = new FopPNRDetails(
                $options->fopCode,
                $options->fopStatus
            );
        }

        if (!empty($options->freeFlowText)) {
            $this->mopDetails->oldFopFreeflow = new OldFopFreeflow(
                $options->freeFlowText,
                $options->freeFlowEncoding
            );
        }

        if (!empty($options->supplementaryData)) {
            $this->mopDetails->pnrSupplementaryData[] = new PnrSupplementaryData(
                DataAndSwitchMap::TYPE_DATA_INFORMATION,
                $options->supplementaryData
            );
        }
        if (!empty($options->supplementarySwitches)) {
            $this->mopDetails->pnrSupplementaryData[] = new PnrSupplementaryData(
                DataAndSwitchMap::TYPE_SWITCH_INFORMATION,
                $options->supplementarySwitches
            );
        }
    }
protected function loadMopDetails(MopInfo $options)
    {
        $this->mopDetails = new MopDetails();

        if ($this->checkAnyNotEmpty($options->fopCode, $options->fopStatus)) {
            $this->mopDetails->fopPNRDetails = new FopPNRDetails(
                $options->fopCode,
                $options->fopStatus
            );
        }

        if (!empty($options->freeFlowText)) {
            $this->mopDetails->oldFopFreeflow = new OldFopFreeflow(
                $options->freeFlowText,
                $options->freeFlowEncoding
            );
        }

        if (!empty($options->supplementaryData)) {
            $this->mopDetails->pnrSupplementaryData[] = new PnrSupplementaryData(
                DataAndSwitchMap::TYPE_DATA_INFORMATION,
                $options->supplementaryData
            );
        }
        if (!empty($options->supplementarySwitches)) {
            $this->mopDetails->pnrSupplementaryData[] = new PnrSupplementaryData(
                DataAndSwitchMap::TYPE_SWITCH_INFORMATION,
                $options->supplementarySwitches
            );
        }
    }
load Method of Payment Details

@param MopInfo $options