Projekt

Obecné

Profil

Stáhnout (850 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 1a669408 Petr Lukašík
<?php
2
3
namespace App\AdminModule\Presenters;
4
5
use App\AdminModule\Components\IExportFormFactory;
6
use App\AdminModule\Components\IImportFormFactory;
7
8
class TransportPresenter extends BaseUserPresenter
9
{
10
    /** @var IImportFormFactory  */
11
    private $importFormFactory;
12
13
    /** @var IExportFormFactory  */
14
    private $exportFormFactory;
15
16
    public function __construct(
17
        IImportFormFactory $importFormFactory,
18
        IExportFormFactory $exportFormFactory
19
    )
20
    {
21
        parent::__construct();
22
        $this->importFormFactory = $importFormFactory;
23
        $this->exportFormFactory = $exportFormFactory;
24
    }
25
26
    public function createComponentImportForm()
27
    {
28
        return $this->importFormFactory->create();
29
    }
30
31
    public function createComponentExportForm()
32
    {
33
        return $this->exportFormFactory->create();
34
    }
35
}