mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Refactored reciever group and adapted testing namespaces
This commit is contained in:
@@ -2,22 +2,24 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\Meta\RecieverInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait RecieverAttribut
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
* @var RecieverInterface
|
||||
*/
|
||||
protected $reciever;
|
||||
|
||||
public function setReciever(string $type): void
|
||||
public function setReciever(RecieverInterface $recieverGroup): void
|
||||
{
|
||||
$this->reciever = $type;
|
||||
$this->reciever = $recieverGroup;
|
||||
}
|
||||
|
||||
public function getReciever(): string
|
||||
public function getReciever(): RecieverInterface
|
||||
{
|
||||
return $this->reciever;
|
||||
}
|
||||
|
@@ -2,12 +2,14 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\Meta\RecieverInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface RecieverAttributInterface
|
||||
{
|
||||
public function setReciever(string $type): void;
|
||||
public function setReciever(RecieverInterface $recieverGroup): void;
|
||||
|
||||
public function getReciever(): string;
|
||||
public function getReciever(): RecieverInterface;
|
||||
}
|
||||
|
@@ -1,26 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\Meta\RecieverGroupInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait RecieverGroupAttribut
|
||||
{
|
||||
/**
|
||||
* @var RecieverGroupInterface
|
||||
*/
|
||||
protected $recieverGroup;
|
||||
|
||||
public function setRecieverGroup(RecieverGroupInterface $recieverGroup): void
|
||||
{
|
||||
$this->recieverGroup = $recieverGroup;
|
||||
}
|
||||
|
||||
public function getRecieverGroup(): RecieverGroupInterface
|
||||
{
|
||||
return $this->recieverGroup;
|
||||
}
|
||||
}
|
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\Meta\RecieverGroupInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface RecieverGroupAttributInterface
|
||||
{
|
||||
public function setRecieverGroup(RecieverGroupInterface $recieverGroup): void;
|
||||
|
||||
public function getRecieverGroup(): RecieverGroupInterface;
|
||||
}
|
Reference in New Issue
Block a user