<?php

namespace ARCHM\Helpers;

/**
 * Utilities Trait
 * Includes helper functions for the plugin
 *
 * @since 1.3.8
 * @package WooArchive
 */
trait Utilities {
    /**
     * Returns option instance
     *
     * @return ARCHM\Admin\Option
     */
    final public function option() {
        return \ARCHM\Admin\SettingOption::get_instance();
    }

    /**
     * Returns I/O instance
     *
     * @return \ArchiveMaaster\Helper\IO
     */
    final public function io() {
        return \ARCHM\Helpers\IO::get_instance();
    }

    /**
     * Returns  instance
     *
     * @return ARCHM\Migrator\db_migration
     */
    final public function db_migration() {
        return \ARCHM\Migrator\WpDbMigration::get_instance();
    }
}
