mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Optimized Interface structure
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\NodeInterface;
|
||||
use App\Entity\Interfaces\NodeInterface;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
use App\Logic\Operation\OperationInterface;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -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
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -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
|
@@ -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
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -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
|
@@ -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
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
@@ -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
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -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;
|
||||
}
|
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
use App\Entity\UserSourceInterface;
|
||||
use App\Entity\Interfaces\UserSourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
namespace App\Entity\Attribut\Interfaces;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\LawInterface;
|
||||
use App\Entity\Interfaces\LawInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\NameSourceInterface;
|
||||
use App\Entity\Interfaces\NameSourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\NodeInterface;
|
||||
use App\Entity\Interfaces\NodeInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Entity\Attribut;
|
||||
|
||||
use App\Entity\Attribut\Interfaces\ParentAttributInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\NodeInterface;
|
||||
use App\Entity\Interfaces\NodeInterface;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\RecieverGroupInterface;
|
||||
use App\Entity\Interfaces\RecieverGroupInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\RightInterface;
|
||||
use App\Entity\Interfaces\RightInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\SourceInterface;
|
||||
use App\Entity\Interfaces\SourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Entity\Attribut;
|
||||
|
||||
use App\Entity\UserSourceInterface;
|
||||
use App\Entity\Interfaces\UserSourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
Reference in New Issue
Block a user