Nmap\Host::getClosedPorts PHP Method

getClosedPorts() public method

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