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

@param string $phone

@return Phone
@throws RuntimeException
@throws InvalidArgumentException
Cleans phone .