| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class LumenController extends Controller |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var PrometheusExporter |
||
| 13 | */ |
||
| 14 | protected $prometheusExporter; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * PrometheusExporterController constructor. |
||
| 18 | * |
||
| 19 | * @param PrometheusExporter $prometheusExporter |
||
| 20 | */ |
||
| 21 | public function __construct(PrometheusExporter $prometheusExporter) |
||
| 22 | { |
||
| 23 | $this->prometheusExporter = $prometheusExporter; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * metrics |
||
| 28 | * |
||
| 29 | * Expose metrics for prometheus |
||
| 30 | * |
||
| 31 | * @return Response |
||
| 32 | */ |
||
| 33 | public function metrics() : Response |
||
| 40 | } |
||
| 41 | } |
||
| 42 |