<?php

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

use ModulesGarden\HostingQuotaNotifications\App\Libs\Migration\MigratorBase;
use ModulesGarden\HostingQuotaNotifications\App\Libs\Migration\Migrator;
use ModulesGarden\HostingQuotaNotifications\App\Libs\Usage\Manage as UsageMange;
/**
 * Class Usage
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class Usage extends MigratorBase implements Migrator
{
    public function migrate()
    {
        foreach ($this->data as $oldData)
        {
            UsageMange::saveByFill((array) $oldData);
        }
    }
}