/** * Add Role for User * * @param Role $role * @return void */ public function grantRole(Role $role) { $role->grantRoleToUser($this); $this->roles[] = $role; $this->record(new RoleWasGranted($this)); }