Actualización

This commit is contained in:
Xes
2025-04-10 12:36:07 +02:00
parent 1da7c3f3b9
commit 4aff98e77b
3147 changed files with 320647 additions and 0 deletions

View 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();
}

View 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);
}

View File

@@ -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);
}

View File

@@ -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);
}