public function passive(bool $passive)
    {
        if (!@ftp_pasv($this->ftp, $passive)) {
            throw new Exception(sprintf("Cannot switch to passive = %s", $passive ? "true" : "false"));
        }

        return $this;
    }
public function passive(bool $passive)
    {
        if (!@ftp_pasv($this->ftp, $passive)) {
            throw new Exception(sprintf("Cannot switch to passive = %s", $passive ? "true" : "false"));
        }

        return $this;
    }
public function passive ( bool $ passive ) { if ( ! @ ftp_pasv ( $ this -> ftp , $ passive ) ) { throw new Exception ( sprintf ( "Cannot switch to passive = %s" , $ passive ? "true" : "false" ) ) ; } return $ this ; }
Switch to active or passive mode.

@param bool $passive

@return $this
@throws Exception
Switch to active or passive mode .