for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ProyectoTAU\TAU\Module\Administration\Role\Domain;
use ProyectoTAU\TAU\Common\PropertiesBag;
use ProyectoTAU\TAU\Common\SettersBag;
/**
* @method void setId(int $id)
* @method int getId()
* @method void setName(string $name)
* @method string getName()
* @method void setDesc(string $desc)
* @method string getDesc()
*/
class Role
{
use PropertiesBag;
use SettersBag;
use RoleUseCases;
public function __construct($id, $name, $desc)
$this->setPropertiesBag(['id', 'name', 'desc']);
$this->setSettersBag($this->getPropertiesBag());
$this->setId($id);
$this->setName($name);
$this->setDesc($desc);
// TODO: Raise CreateRoleDomainEvent($this)
}
public function __toString()
return $this->propertiesBagToString();