Optimized namespaes

This commit is contained in:
Kevin Frantz
2018-10-03 16:14:15 +02:00
parent 871c100d28
commit eb77157e4c
49 changed files with 97 additions and 98 deletions

View File

@@ -1,12 +1,13 @@
<?php
namespace App\Entity;
namespace App\Entity\Source;
use App\Entity\Attribut\NodeAttribut;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\Exclude;
use App\Entity\SourceInterface;
use App\Entity\Source\SourceInterface;
use App\Entity\NodeInterface;
use App\Entity\AbstractEntity;
/**
* @author kevinfrantz

View File

@@ -1,11 +1,11 @@
<?php
namespace App\Entity;
namespace App\Entity\Source;
use App\Entity\Attribut\NameAttribut;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use App\Entity\NameSourceInterface;
use App\Entity\Source\NameSourceInterface;
/**
* @author kevinfrantz

View File

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

View File

@@ -1,14 +1,15 @@
<?php
namespace App\Entity;
namespace App\Entity\Source\Operation;
use App\Logic\Result\ResultInterface;
use App\Logic\Operation\OperationInterface;
use App\Logic\Operation\OperandInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Source\AbstractSource;
/**
*
* @author kevinfrantz
* @ORM\Entity
* @ORM\Table(name="source_operation")
@@ -18,6 +19,7 @@ use Doctrine\ORM\Mapping as ORM;
*/
abstract class AbstractOperation extends AbstractSource implements OperationInterface
{
/**
* The result MUST NOT be saved via Doctrine!
*
@@ -26,6 +28,7 @@ abstract class AbstractOperation extends AbstractSource implements OperationInte
protected $result;
/**
*
* @var ArrayCollection|OperandInterface[]
*/
protected $operands;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity;
namespace App\Entity\Source\Operation;
use App\Logic\Operation\OperandInterface;
use App\Logic\Result\Result;

View File

@@ -1,15 +0,0 @@
<?php
namespace App\Entity;
use App\Entity\Attribut\Interfaces\NodeAttributInterface;
use App\Entity\Attribut\Interfaces\RecieverAttributInterface;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @author kevinfrantz
*/
interface RecieverGroupInterface extends NodeAttributInterface, RecieverAttributInterface
{
public function getAllRecievers(): ArrayCollection;
}

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Entity\Source;
use App\Entity\Attribut\NodeAttributInterface;
use App\Entity\Attribut\IdAttributInterface;
/**
*
* @author kevinfrantz
*/
interface SourceInterface extends IdAttributInterface, NodeAttributInterface
{
}

View File

@@ -1,13 +1,13 @@
<?php
namespace App\Entity;
namespace App\Entity\Source;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use App\Entity\Attribut\UserAttribut;
use App\Entity\Attribut\NameSourceAttribut;
use App\Entity\UserSourceInterface;
use App\Entity\NameSourceInterface;
use App\Entity\Source\UserSourceInterface;
use App\Entity\Source\NameSourceInterface;
/**
* @author kevinfrantz

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity;
namespace App\Entity\Source;
use App\Entity\Attribut\Interfaces\UserAttributInterface;
use App\Entity\Attribut\Interfaces\NameSourceAttributInterface;
use App\Entity\Attribut\UserAttributInterface;
use App\Entity\Attribut\NameSourceAttributInterface;
/**
* @author kevinfrantz