mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 14:46:37 +00:00
90 lines
2.2 KiB
PHP
90 lines
2.2 KiB
PHP
![]() |
<?php
|
||
|
declare(strict_types=1);
|
||
|
/**
|
||
|
* FileJobConfiguration.php
|
||
|
* Copyright (c) 2018 thegrumpydictator@gmail.com
|
||
|
*
|
||
|
* This file is part of Firefly III.
|
||
|
*
|
||
|
* Firefly III is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* Firefly III is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
namespace FireflyIII\Import\JobConfiguration;
|
||
|
|
||
|
|
||
|
use FireflyIII\Models\ImportJob;
|
||
|
use Illuminate\Support\MessageBag;
|
||
|
|
||
|
class FileJobConfiguration implements JobConfigurationInterface
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* ConfiguratorInterface constructor.
|
||
|
*/
|
||
|
public function __construct()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Store any data from the $data array into the job. Anything in the message bag will be flashed
|
||
|
* as an error to the user, regardless of its content.
|
||
|
*
|
||
|
* @param array $data
|
||
|
*
|
||
|
* @return MessageBag
|
||
|
*/
|
||
|
public function configureJob(array $data): MessageBag
|
||
|
{
|
||
|
// TODO: Implement configureJob() method.
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Return the data required for the next step in the job configuration.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public function getNextData(): array
|
||
|
{
|
||
|
// TODO: Implement getNextData() method.
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Returns the view of the next step in the job configuration.
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getNextView(): string
|
||
|
{
|
||
|
// TODO: Implement getNextView() method.
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Returns true when the initial configuration for this job is complete.
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function configurationComplete(): bool
|
||
|
{
|
||
|
// TODO: Implement configurationComplete() method.
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param ImportJob $job
|
||
|
*/
|
||
|
public function setJob(ImportJob $job): void
|
||
|
{
|
||
|
// TODO: Implement setJob() method.
|
||
|
}
|
||
|
}
|