public function getStatisticsServices():array
    {

        $services = $this->getAllServices();
        $counter = 0;
        $senable = 0;

        foreach ($services as $val) {
            if ($val->status == "enabled") {
                $senable++;
            }

            $counter++;
        }

        return (array("number" => $counter, "enabled" => $senable));
    }
public function getStatisticsServices():array
    {

        $services = $this->getAllServices();
        $counter = 0;
        $senable = 0;

        foreach ($services as $val) {
            if ($val->status == "enabled") {
                $senable++;
            }

            $counter++;
        }

        return (array("number" => $counter, "enabled" => $senable));
    }
public function getStatisticsServices ( ) : array { $ services = $ this -> getAllServices ( ) ; $ counter = 0 ; $ senable = 0 ; foreach ( $ services as $ val ) { if ( $ val -> status == "enabled" ) { $ senable ++ ; } $ counter ++ ; } return ( array ( "number" => $ counter , "enabled" => $ senable ) ) ; }
Get service statistics
@return array Service statistics
@throws
Get service statistics