Applied CS fixer

This commit is contained in:
Kevin Frantz
2018-10-29 19:01:00 +01:00
parent 91c41105c7
commit 6bc95f9729
46 changed files with 270 additions and 281 deletions

View File

@@ -1,25 +1,24 @@
<?php
namespace App\Entity\Attribut;
/**
*
* @author kevinfrantz
*
*/
trait VersionAttribut
{
/**
*
* @var int
*/
protected $version;
public function setVersion(int $version):void{
public function setVersion(int $version): void
{
$this->version = $version;
}
public function getVersion():int{
public function getVersion(): int
{
return $this->version;
}
}

View File

@@ -1,24 +1,28 @@
<?php
namespace App\Entity\Attribut;
/**
* Entities which implement this interface can lock stuff on an optimistic base.
* Entities which implement this interface can lock stuff on an optimistic base.
*
* @see https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/transactions-and-concurrency.html
* @see https://en.wikipedia.org/wiki/Optimistic_concurrency_control
*
* @author kevinfrantz
*/
interface VersionAttributInterface
{
/**
* Returns the revision version of the entity
* Returns the revision version of the entity.
*
* @return int
*/
public function getVersion():int;
public function getVersion(): int;
/**
* Sets the revision version of the entity
* Sets the revision version of the entity.
*
* @param int $version
*/
public function setVersion(int $version):void;
public function setVersion(int $version): void;
}