for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Koine\Repository\Entity;
use Koine\Repository\Entity\GeneratedIdInterface;
use Koine\Repository\Entity\IdAwareInterface;
abstract class IdAwareEntity implements GeneratedIdInterface, IdAwareInterface
{
/**
* @param int
*/
private $id;
public function setGeneratedId($id)
return $this->setId($id);
}
* @param int $id
*
* @return self
public function setId($id)
$this->id = $id;
return $this;
* @return int
public function getId()
return $this->id;