<?php

namespace ModulesGarden\HostingQuotaNotifications\App\Libs\Migration\Tables;


use ModulesGarden\HostingQuotaNotifications\App\Libs\Migration\Migrator;
use ModulesGarden\HostingQuotaNotifications\App\Libs\Migration\MigratorBase;
use ModulesGarden\HostingQuotaNotifications\App\Helper\Migration\Notification\Notifications;


/**
 * Class Notification
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class Notification extends MigratorBase implements Migrator
{

    public function migrate()
    {
        foreach ($this->data as $oldData)
        {
            Notifications::convertData((array) $oldData);
        }
    }
}