for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bankiru\Api\Doctrine\Test\Entity;
class TestReference
{
/** @var int */
private $id;
/** @var string */
private $referencePayload;
/** @var TestEntity */
private $owner;
/**
* @return int
*/
public function getId()
return $this->id;
}
* @return TestEntity
public function getOwner()
return $this->owner;
* @param TestEntity $owner
public function setOwner(TestEntity $owner = null)
if ($this->owner) {
$this->owner->getReferences()->removeElement($this);
$this->owner = $owner;
$this->owner->getReferences()->add($this);
* @return string
public function getReferencePayload()
return $this->referencePayload;