Nmap\Host::getOpenPorts PHP Method

getOpenPorts() public method

public getOpenPorts ( ) : Port[]
return Port[]
    public function getOpenPorts()
    {
        return array_filter($this->ports, function ($port) {
            return $port->isOpen();
        });
    }