Optimized MVC and implemented function tests for format

This commit is contained in:
Kevin Frantz
2019-03-29 17:53:06 +01:00
parent 522ba1994e
commit 94b84527a8
9 changed files with 92 additions and 10 deletions

View File

@@ -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;