Optimized Interface structure

This commit is contained in:
Kevin Frantz
2018-09-24 18:41:26 +02:00
parent a6fac55be4
commit 1087c6b2ad
56 changed files with 177 additions and 141 deletions

View File

@@ -2,7 +2,7 @@
namespace App\Entity\Attribut;
use App\Entity\NodeInterface;
use App\Entity\Interfaces\NodeInterface;
use Doctrine\Common\Collections\Collection;
/**

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use Doctrine\Common\Collections\Collection;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use App\Logic\Operation\OperationInterface;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
/**
* @author kevinfrantz

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use App\Entity\LawInterface;
use App\Entity\Interfaces\LawInterface;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
/**
* @author kevinfrantz

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use App\Entity\NameSourceInterface;
use App\Entity\Interfaces\NameSourceInterface;
/**
* @author kevinfrantz

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use App\Entity\NodeInterface;
use App\Entity\Interfaces\NodeInterface;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use Doctrine\Common\Collections\Collection;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
/**
* @author kevinfrantz

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use App\Entity\RecieverGroupInterface;
use App\Entity\Interfaces\RecieverGroupInterface;
/**
* @author kevinfrantz

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use App\Entity\RightInterface;
use App\Entity\Interfaces\RightInterface;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use Doctrine\Common\Collections\Collection;

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use App\Entity\SourceInterface;
use App\Entity\Interfaces\SourceInterface;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
/**
* @author kevinfrantz

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Entity\Attribut\Interfaces;
use App\Entity\Interfaces\UserInterface;
/**
* @author kevinfrantz
*/
interface UserAttributInterface
{
public function setUser(UserInterface $user): void;
public function getUser(): UserInterface;
}

View File

@@ -1,8 +1,8 @@
<?php
namespace Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
use App\Entity\UserSourceInterface;
use App\Entity\Interfaces\UserSourceInterface;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Attribut;
namespace App\Entity\Attribut\Interfaces;
/**
* @author kevinfrantz

View File

@@ -2,7 +2,7 @@
namespace App\Entity\Attribut;
use App\Entity\LawInterface;
use App\Entity\Interfaces\LawInterface;
/**
* @author kevinfrantz

View File

@@ -2,7 +2,7 @@
namespace App\Entity\Attribut;
use App\Entity\NameSourceInterface;
use App\Entity\Interfaces\NameSourceInterface;
/**
* @author kevinfrantz

View File

@@ -2,7 +2,7 @@
namespace App\Entity\Attribut;
use App\Entity\NodeInterface;
use App\Entity\Interfaces\NodeInterface;
/**
* @author kevinfrantz

View File

@@ -2,6 +2,8 @@
namespace Entity\Attribut;
use App\Entity\Attribut\Interfaces\ParentAttributInterface;
/**
* @author kevinfrantz
*/

View File

@@ -2,7 +2,7 @@
namespace App\Entity\Attribut;
use App\Entity\NodeInterface;
use App\Entity\Interfaces\NodeInterface;
use Doctrine\Common\Collections\Collection;
/**

View File

@@ -2,7 +2,7 @@
namespace App\Entity\Attribut;
use App\Entity\RecieverGroupInterface;
use App\Entity\Interfaces\RecieverGroupInterface;
/**
* @author kevinfrantz

View File

@@ -2,7 +2,7 @@
namespace App\Entity\Attribut;
use App\Entity\RightInterface;
use App\Entity\Interfaces\RightInterface;
/**
* @author kevinfrantz

View File

@@ -2,7 +2,7 @@
namespace App\Entity\Attribut;
use App\Entity\SourceInterface;
use App\Entity\Interfaces\SourceInterface;
/**
* @author kevinfrantz

View File

@@ -3,6 +3,7 @@
namespace App\Entity\Attribut;
use App\Entity\User;
use App\Entity\Interfaces\UserInterface;
/**
* @author kevinfrantz
@@ -14,12 +15,12 @@ trait UserAttribut
*/
protected $user;
public function setUser(User $user): void
public function setUser(UserInterface $user): void
{
$this->user = $user;
}
public function getUser(): User
public function getUser(): UserInterface
{
return $this->user;
}

View File

@@ -1,15 +0,0 @@
<?php
namespace App\Entity\Attribut;
use App\Entity\User;
/**
* @author kevinfrantz
*/
interface UserAttributInterface
{
public function setUser(User $user): void;
public function getUser(): User;
}

View File

@@ -2,7 +2,7 @@
namespace Entity\Attribut;
use App\Entity\UserSourceInterface;
use App\Entity\Interfaces\UserSourceInterface;
/**
* @author kevinfrantz