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

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

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

@param string $passport

@return Passport
@throws RuntimeException
@throws InvalidArgumentException
Cleans passport .