public function cleanEmail($email)
    {
        $response = $this->query($this->prepareUri('clean/email'), [$email]);
        $result = $this->populate(new Email, $response);
        if (!$result instanceof Email) {
            throw new RuntimeException('Unexpected populate result: ' . get_class($result). '. Expected: ' . Email::class);
        }

        return $result;
    }
public function cleanEmail($email)
    {
        $response = $this->query($this->prepareUri('clean/email'), [$email]);
        $result = $this->populate(new Email, $response);
        if (!$result instanceof Email) {
            throw new RuntimeException('Unexpected populate result: ' . get_class($result). '. Expected: ' . Email::class);
        }

        return $result;
    }
public function cleanEmail ( $ email ) { $ response = $ this -> query ( $ this -> prepareUri ( 'clean/email' ) , [ $ email ] ) ; $ result = $ this -> populate ( new Email , $ response ) ; if ( ! $ result instanceof Email ) { throw new RuntimeException ( 'Unexpected populate result: ' . get_class ( $ result ) . '. Expected: ' . Email :: class ) ; } return $ result ; }
Cleans email.

@param string $email

@return Email
@throws RuntimeException
@throws InvalidArgumentException
Cleans email .