Actualización
This commit is contained in:
22
plugin/migrationmoodle/src/Interfaces/ExtractorInterface.php
Normal file
22
plugin/migrationmoodle/src/Interfaces/ExtractorInterface.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/* For licensing terms, see /license.txt */
|
||||
|
||||
namespace Chamilo\PluginBundle\MigrationMoodle\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface ExtractorInterface.
|
||||
*/
|
||||
interface ExtractorInterface
|
||||
{
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function filter(array $sourceData);
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*
|
||||
* @return iterable
|
||||
*/
|
||||
public function extract();
|
||||
}
|
||||
17
plugin/migrationmoodle/src/Interfaces/LoaderInterface.php
Normal file
17
plugin/migrationmoodle/src/Interfaces/LoaderInterface.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/* For licensing terms, see /license.txt */
|
||||
|
||||
namespace Chamilo\PluginBundle\MigrationMoodle\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface LoaderInterface.
|
||||
*/
|
||||
interface LoaderInterface
|
||||
{
|
||||
/**
|
||||
* Load the data and return the ID inserted.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function load(array $incomingData);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/* For licensing terms, see /license.txt */
|
||||
|
||||
namespace Chamilo\PluginBundle\MigrationMoodle\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface TransformPropertyInterface.
|
||||
*/
|
||||
interface TransformPropertyInterface
|
||||
{
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function transform(array $data);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/* For licensing terms, see /license.txt */
|
||||
|
||||
namespace Chamilo\PluginBundle\MigrationMoodle\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface TransformerInterface.
|
||||
*/
|
||||
interface TransformerInterface
|
||||
{
|
||||
/**
|
||||
* @throws \Exception
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function transform(array $sourceData);
|
||||
}
|
||||
Reference in New Issue
Block a user