From 4e5bbd7f607f5bf284a122a09c7543c892d74727 Mon Sep 17 00:00:00 2001 From: Benjamin Perche Date: Thu, 10 Jul 2014 15:12:40 +0200 Subject: [PATCH] Define interfaces for import and export handle class nouveau fichier: core/lib/Thelia/ImportExport/ExportHandlerInterface.php nouveau fichier: core/lib/Thelia/ImportExport/ImportHandlerInterface.php --- .../ImportExport/ExportHandlerInterface.php | 36 ++++++++++++++++++ .../ImportExport/ImportHandlerInterface.php | 37 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 core/lib/Thelia/ImportExport/ExportHandlerInterface.php create mode 100644 core/lib/Thelia/ImportExport/ImportHandlerInterface.php diff --git a/core/lib/Thelia/ImportExport/ExportHandlerInterface.php b/core/lib/Thelia/ImportExport/ExportHandlerInterface.php new file mode 100644 index 000000000..4d637201b --- /dev/null +++ b/core/lib/Thelia/ImportExport/ExportHandlerInterface.php @@ -0,0 +1,36 @@ + + */ +interface ExportHandlerInterface +{ + /** + * @param ContainerInterface $container + * + * Dependency injection: load the container to be able to get parameters and services + */ + public function __construct(ContainerInterface $container); + + /** + * @return \Thelia\Core\FileFormat\Formatting\FormatterData + * + * The method builds + */ + public function buildFormatterData(); +} \ No newline at end of file diff --git a/core/lib/Thelia/ImportExport/ImportHandlerInterface.php b/core/lib/Thelia/ImportExport/ImportHandlerInterface.php new file mode 100644 index 000000000..1faba3786 --- /dev/null +++ b/core/lib/Thelia/ImportExport/ImportHandlerInterface.php @@ -0,0 +1,37 @@ + + */ +interface ImportHandlerInterface +{ + /** + * @param ContainerInterface $container + * + * Dependency injection: load the container to be able to get parameters and services + */ + public function __construct(ContainerInterface $container); + + /** + * @return \Thelia\Core\FileFormat\Formatting\FormatterData + * + * The method builds + */ + public function importFromFormatterData(FormatterData $data); +} \ No newline at end of file