Implemenented version attribt, repository and tests for right entity

This commit is contained in:
Kevin Frantz
2018-11-24 14:59:15 +01:00
parent 89530fd6e0
commit ed41dd6bf8
9 changed files with 196 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Entity\Attribut;
trait PriorityAttribut
{
/**
* @var int
*/
protected $priority;
public function setPriority(int $priority): void
{
$this->priority = $priority;
}
public function getPriority(): int
{
return $this->priority;
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Entity\Attribut;
interface PriorityAttributInterface
{
public function setPriority(int $priority): void;
public function getPriority(): int;
}