one_min = $one_min; $this->five_min = $five_min; $this->fifteen_min = $fifteen_min; } /** * Get all the system load averages. * * @return array */ public function all(): array { return [ '1' => $this->one_min, '5' => $this->five_min, '15' => $this->fifteen_min, ]; } /** * Get the one-minute load average. * * @return float */ public function one_min(): float { return $this->one_min; } /** * Get the five-minute load average. * * @return float */ public function five_min(): float { return $this->five_min; } /** * Get the fifteen-minute load average. * * @return float */ public function fifteen_min(): float { return $this->fifteen_min; } }