mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-14 06:07:18 +02:00
Changed AbstractDataSoure to AbstractPrimitiveSource
This commit is contained in:
@@ -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
|
||||
{
|
||||
}
|
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Source\Primitive;
|
||||
|
||||
use App\Entity\Source\SourceInterface;
|
||||
|
||||
interface DataSourceInterface extends SourceInterface
|
||||
{
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Source\Primitive\Name;
|
||||
|
||||
use App\Entity\Source\Primitive\AbstractDataSource;
|
||||
use App\Entity\Source\Primitive\AbstractPrimitiveSource;
|
||||
use App\Entity\Attribut\NameAttribut;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
@@ -19,7 +19,7 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||
* @ORM\DiscriminatorColumn(name="discr", type="string")
|
||||
* @ORM\DiscriminatorMap({"nickname" = "NicknameSource","firstname" = "FirstNameSource", "surname" = "SurnameSource"})
|
||||
*/
|
||||
class AbstractNameSource extends AbstractDataSource implements NameSourceInterface
|
||||
class AbstractNameSource extends AbstractPrimitiveSource implements NameSourceInterface
|
||||
{
|
||||
use NameAttribut;
|
||||
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace App\Entity\Source\Primitive\Name;
|
||||
|
||||
use App\Entity\Source\Primitive\DataSourceInterface;
|
||||
use App\Entity\Source\Primitive\PrimitiveSourceInterface;
|
||||
use App\Entity\Attribut\NameAttributInterface;
|
||||
|
||||
interface NameSourceInterface extends DataSourceInterface, NameAttributInterface
|
||||
interface NameSourceInterface extends PrimitiveSourceInterface, NameAttributInterface
|
||||
{
|
||||
}
|
||||
|
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Source\Primitive;
|
||||
|
||||
use App\Entity\Source\SourceInterface;
|
||||
|
||||
/**
|
||||
* Primitive sources contain one attribut, which is not a source.
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface PrimitiveSourceInterface extends SourceInterface
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user