diff --git a/application/src/Entity/Source/AbstractSource.php b/application/src/Entity/Source/AbstractSource.php index 9fc1629..96b7556 100644 --- a/application/src/Entity/Source/AbstractSource.php +++ b/application/src/Entity/Source/AbstractSource.php @@ -23,7 +23,7 @@ use App\Entity\Source\Collection\TreeCollectionSourceInterface; * @ORM\Table(name="source") * @ORM\InheritanceType("JOINED") * @ORM\DiscriminatorColumn(name="discr", type="string") - * @ORM\DiscriminatorMap({"data" = "App\Entity\Source\Primitive\AbstractDataSource", "collection" = "App\Entity\Source\Collection\AbstractCollectionSource","operation"="App\Entity\Source\Operation\AbstractOperation"}) + * @ORM\DiscriminatorMap({"primitive" = "App\Entity\Source\Primitive\AbstractPrimitiveSource", "collection" = "App\Entity\Source\Collection\AbstractCollectionSource","operation"="App\Entity\Source\Operation\AbstractOperation"}) */ abstract class AbstractSource extends AbstractEntity implements SourceInterface { diff --git a/application/src/Entity/Source/Complex/ComplexSourceInterface.php b/application/src/Entity/Source/Complex/ComplexSourceInterface.php index 42e7c26..9756c4e 100644 --- a/application/src/Entity/Source/Complex/ComplexSourceInterface.php +++ b/application/src/Entity/Source/Complex/ComplexSourceInterface.php @@ -2,8 +2,13 @@ namespace App\Entity\Source\Complex; -use App\Entity\Source\Primitive\DataSourceInterface; +use App\Entity\Source\SourceInterface; -interface ComplexSourceInterface extends DataSourceInterface +/** + * Complex sources contain out of one or more primitive sources. + * + * @author kevinfrantz + */ +interface ComplexSourceInterface extends SourceInterface { } diff --git a/application/src/Entity/Source/Primitive/AbstractDataSource.php b/application/src/Entity/Source/Primitive/AbstractPrimitiveSource.php similarity index 79% rename from application/src/Entity/Source/Primitive/AbstractDataSource.php rename to application/src/Entity/Source/Primitive/AbstractPrimitiveSource.php index dc8d9cc..e95982b 100644 --- a/application/src/Entity/Source/Primitive/AbstractDataSource.php +++ b/application/src/Entity/Source/Primitive/AbstractPrimitiveSource.php @@ -14,6 +14,6 @@ use App\Entity\Source\AbstractSource; * @ORM\DiscriminatorColumn(name="discr", type="string") * @ORM\DiscriminatorMap({"name" = "App\Entity\Source\Primitive\Name\AbstractNameSource"}) */ -abstract class AbstractDataSource extends AbstractSource implements DataSourceInterface +abstract class AbstractPrimitiveSource extends AbstractSource implements PrimitiveSourceInterface { } diff --git a/application/src/Entity/Source/Primitive/DataSourceInterface.php b/application/src/Entity/Source/Primitive/DataSourceInterface.php deleted file mode 100644 index 20d53a2..0000000 --- a/application/src/Entity/Source/Primitive/DataSourceInterface.php +++ /dev/null @@ -1,9 +0,0 @@ -