for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace gossi\codegen\model\parts;
/**
* Reference return part
*
* Keeps track whether the return value is a reference or not
* @author Thomas Gossmann
*/
trait ReferenceReturnPart {
/** @var bool */
private $referenceReturned = false;
* Set true if a reference is returned of false if not
* @param bool $bool
* @return $this
public function setReferenceReturned($bool) {
$this->referenceReturned = (boolean) $bool;
return $this;
}
* Returns whether a reference is returned
* @return bool
public function isReferenceReturned() {
return $this->referenceReturned;