Implemented FixtureManagement

This commit is contained in:
Kevin Frantz
2019-02-02 23:02:28 +01:00
parent 52d38a0c84
commit aa735367d9
14 changed files with 549 additions and 293 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Domain\FixtureManagement\FixtureSource;
use App\Entity\Source\SourceInterface;
use App\Attribut\SlugAttributInterface;
/**
* This interface allows to save the configuration values of an fixture in a class.
*
* @author kevinfrantz
*/
interface FixtureSourceInterface
{
/**
* @return SourceInterface An source, which can be handled by Doctrine ORM persist
*/
public function getORMReadyObject(): SourceInterface;
/**
* It's necessary for tests and to address the object correct.
*
* @return SlugAttributInterface
*/
public static function getSlug(): string;
}