Aerys\Vhost::monitor PHP Method

monitor() public method

public monitor ( ) : array
return array
    public function monitor() : array
    {
        $handlers = [];
        foreach ($this->monitors as $class => $monitors) {
            $handlers[$class] = array_map(function ($montior) {
                return $montior->monitor();
            }, $monitors);
        }
        return ["interfaces" => $this->interfaces, "name" => $this->name, "tls" => $this->tlsContextArr, "handlers" => $handlers];
    }