-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImportContextInterface.php
82 lines (54 loc) · 2.43 KB
/
ImportContextInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/*
* This file is part of the Klipper package.
*
* (c) François Pluchino <francois.pluchino@klipper.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Klipper\Component\Import;
use Klipper\Component\Content\ContentManagerInterface;
use Klipper\Component\Import\Model\ImportInterface;
use Klipper\Component\Metadata\MetadataManagerInterface;
use Klipper\Component\Metadata\ObjectMetadataInterface;
use Klipper\Component\Resource\Domain\DomainInterface;
use Klipper\Component\Resource\Domain\DomainManagerInterface;
use Klipper\Component\Resource\ResourceInterface;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
use PhpOffice\PhpSpreadsheet\Writer\IWriter;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
* @author François Pluchino <francois.pluchino@klipper.dev>
*/
interface ImportContextInterface
{
public function getFormFactory(): FormFactoryInterface;
public function getTranslator(): TranslatorInterface;
public function getPropertyAccessor(): PropertyAccessorInterface;
public function getDomainManager(): DomainManagerInterface;
public function getContentManager(): ContentManagerInterface;
public function getMetadataManager(): MetadataManagerInterface;
public function getDomainImport(): DomainInterface;
public function getDomainTarget(): DomainInterface;
public function getImport(): ImportInterface;
public function getMetadataTarget(): ObjectMetadataInterface;
public function getMappingColumns(): array;
public function getMappingFields(): array;
public function getMappingAssociations(): array;
public function getSpreadsheet(): Spreadsheet;
public function getActiveSheet(): Worksheet;
public function getWriter(): IWriter;
public function getFile(): string;
public function getLocale(): string;
public function saveWriter(): void;
public function getFieldIdentifierIndex(): int;
public function getImportStatusIndex(): int;
public function getImportMessageIndex(): int;
public function setResult(ResourceInterface $resource, int $rowIndex): void;
public function setResultError(int $rowIndex, $message): void;
public function saveImport(): ResourceInterface;
}