Declared AbstractNameSource as abstract and adapted paths for usersource

This commit is contained in:
Kevin Frantz 2018-11-11 21:12:21 +01:00
parent 43cdc6fa0b
commit ea20f7562a
5 changed files with 9 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
namespace App\Entity\Source\Data; namespace App\Entity\Source\Combination;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use App\Entity\Attribut\UserAttribut; use App\Entity\Attribut\UserAttribut;
@ -12,7 +12,7 @@ use Entity\Attribut\PersonIdentityAttribut;
* @ORM\Table(name="source_data_user") * @ORM\Table(name="source_data_user")
* @ORM\Entity(repositoryClass="App\Repository\UserSourceRepository") * @ORM\Entity(repositoryClass="App\Repository\UserSourceRepository")
*/ */
class UserSource extends AbstractDataSource implements UserSourceInterface class UserSource extends AbstractCombinationSource implements UserSourceInterface
{ {
use UserAttribut,PersonIdentityAttribut; use UserAttribut,PersonIdentityAttribut;

View File

@ -1,9 +1,10 @@
<?php <?php
namespace App\Entity\Source\Data; namespace App\Entity\Source\Combination;
use App\Entity\Attribut\UserAttributInterface; use App\Entity\Attribut\UserAttributInterface;
use App\Entity\Attribut\PersonIdentitySourceAttributInterface; use App\Entity\Attribut\PersonIdentitySourceAttributInterface;
use App\Entity\Source\Data\DataSourceInterface;
/** /**
* @author kevinfrantz * @author kevinfrantz

View File

@ -4,6 +4,6 @@ namespace App\Entity\Source\Data\Name;
use App\Entity\Source\Data\AbstractDataSource; use App\Entity\Source\Data\AbstractDataSource;
class AbstractNameSource extends AbstractDataSource implements NameSourceInterface abstract class AbstractNameSource extends AbstractDataSource implements NameSourceInterface
{ {
} }

View File

@ -6,8 +6,8 @@ use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\User as BaseUser; use FOS\UserBundle\Model\User as BaseUser;
use App\Entity\Attribut\SourceAttribut; use App\Entity\Attribut\SourceAttribut;
use App\Entity\Attribut\IdAttribut; use App\Entity\Attribut\IdAttribut;
use App\Entity\Source\Data\UserSourceInterface; use App\Entity\Source\Combination\UserSourceInterface;
use App\Entity\Source\Data\UserSource; use App\Entity\Source\Combination\UserSource;
use App\Entity\Attribut\VersionAttribut; use App\Entity\Attribut\VersionAttribut;
/** /**

View File

@ -3,8 +3,8 @@
namespace tests\unit\Entity\Source\Combination; namespace tests\unit\Entity\Source\Combination;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use App\Entity\Source\Data\UserSourceInterface; use App\Entity\Source\Combination\UserSourceInterface;
use App\Entity\Source\Data\UserSource; use App\Entity\Source\Combination\UserSource;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use App\Entity\Source\Data\PersonIdentitySourceInterface; use App\Entity\Source\Data\PersonIdentitySourceInterface;