mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized MVC and implemented function tests for format
This commit is contained in:
@@ -6,6 +6,8 @@ use Infinito\Entity\Meta\Relation\RelationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*
|
||||
* @see RelationAttributInterface
|
||||
*/
|
||||
trait RelationAttribut
|
||||
{
|
||||
@@ -14,11 +16,21 @@ trait RelationAttribut
|
||||
*/
|
||||
protected $relation;
|
||||
|
||||
/**
|
||||
* @param RelationInterface $relation
|
||||
*
|
||||
* @see RelationAttributInterface
|
||||
*/
|
||||
public function setRelation(RelationInterface $relation): void
|
||||
{
|
||||
$this->relation = $relation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RelationAttributInterface
|
||||
*
|
||||
* @return RelationInterface
|
||||
*/
|
||||
public function getRelation(): RelationInterface
|
||||
{
|
||||
return $this->relation;
|
||||
|
@@ -9,7 +9,13 @@ use Infinito\Entity\Meta\Relation\RelationInterface;
|
||||
*/
|
||||
interface RelationAttributInterface
|
||||
{
|
||||
/**
|
||||
* @param RelationInterface $relation
|
||||
*/
|
||||
public function setRelation(RelationInterface $relation): void;
|
||||
|
||||
/**
|
||||
* @return RelationInterface
|
||||
*/
|
||||
public function getRelation(): RelationInterface;
|
||||
}
|
||||
|
Reference in New Issue
Block a user