src/Administration.php
public function removeRoleForUserByEmail($userEmail, $role) {
		$userEmail = self::validateEmailAddress($userEmail);

		$userFound = $this->removeRoleForUserByColumnValue(
			'email',
			$userEmail,
			$role
		);

		if ($userFound === false) {
			throw new InvalidEmailException();
		}
	}
public function removeRoleForUserByEmail($userEmail, $role) {
		$userEmail = self::validateEmailAddress($userEmail);

		$userFound = $this->removeRoleForUserByColumnValue(
			'email',
			$userEmail,
			$role
		);

		if ($userFound === false) {
			throw new InvalidEmailException();
		}
	}
public function removeRoleForUserByEmail ( $ userEmail , $ role ) { $ userEmail = self :: validateEmailAddress ( $ userEmail ) ; $ userFound = $ this -> removeRoleForUserByColumnValue ( 'email' , $ userEmail , $ role ) ; if ( $ userFound === false ) { throw new InvalidEmailException ( ) ; } }
Takes away the specified role from the user with the given email address

A user may have any number of roles (i.e. no role at all, a single role, or any combination of roles)

@param string $userEmail the email address of the user to take the role away from
@param int $role the role as one of the constants from the {@see Role} class
@throws InvalidEmailException if no user with the specified email address has been found

@see Role
Takes away the specified role from the user with the given email address