for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace gossi\codegen\model\parts;
/**
* Abstract Part
*
* Keeps track if the model has an abstract modifier or not
* @author Thomas Gossmann
*/
trait AbstractPart {
/** @var bool */
private $abstract = false;
* Returns whether this is abstract
* @return bool `true` for abstract and `false` if not
public function isAbstract() {
return $this->abstract;
}
* Sets this to abstract
* @param bool $bool `true` for abstract and `false` if not
* @return $this
public function setAbstract($bool) {
$this->abstract = (boolean) $bool;
return $this;