<?php
// Copyright 1999-2017. Plesk International GmbH. All rights reserved.

namespace Plesk\MigrationLibV8\MailImport\Backend\Files;

class Config extends \Plesk\MigrationLibV8\Common\Backend\Files\Config
{
    /**
     * Set domain name to which mail should be transferred.
     *
     * @param $domain string
     */
    public function setSourceTargetDomain($domain)
    {
        // Target domain is inside of source section (not inside of target section as you could expect)
        // just for consistency with web import.
        $this->setSourceValue('target-domain', $domain);
    }
}
