public function __construct($name, $roles = array()) { $this->name = $name; $this->roles = $roles; }
public function __construct($name = "", $roles = array()) { parent::__construct($name, $roles); $this->setCreatedAt(new \DateTime()); $this->setUpdatedAt(new \DateTime()); $this->setPermissions(array('VIEW', 'EDIT', 'CREATE', 'DELETE')); }