Lukasss93/laravel-larex

View on GitHub
src/Contracts/Importer.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Lukasss93\Larex\Contracts;

use Illuminate\Support\Collection;
use Lukasss93\Larex\Console\LarexImportCommand;
use Lukasss93\Larex\Exceptions\ImportException;

interface Importer
{
    /**
     * Exporter description.
     * @return string
     */
    public static function description(): string;

    /**
     * Exporter logic.
     * @param LarexImportCommand $command
     * @return Collection
     * @throws ImportException
     */
    public function handle(LarexImportCommand $command): Collection;
}