infinito/application/src/Entity/Attribut/VersionAttribut.php

25 lines
333 B
PHP
Raw Normal View History

2018-10-25 20:42:52 +02:00
<?php
2018-10-29 19:01:00 +01:00
2018-10-25 20:42:52 +02:00
namespace App\Entity\Attribut;
/**
* @author kevinfrantz
*/
trait VersionAttribut
{
/**
* @var int
*/
protected $version;
2018-10-29 19:01:00 +01:00
public function setVersion(int $version): void
{
2018-10-25 20:42:52 +02:00
$this->version = $version;
}
2018-10-29 19:01:00 +01:00
public function getVersion(): int
{
2018-10-25 20:42:52 +02:00
return $this->version;
}
}