Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait WritesHttpLogs |
||
10 | { |
||
11 | use RemovesUnwantedParams; |
||
12 | |||
13 | protected $enableLogging = true; |
||
14 | |||
15 | /** |
||
16 | * Write HTTP log to the database. |
||
17 | * |
||
18 | * @param string $method Name of the method |
||
19 | * @param string $endpoint Name of the endpoint |
||
20 | * @param array|null $params Request parameters |
||
21 | * @param ResponseInterface $response Response received |
||
22 | */ |
||
23 | final protected function log($method, $endpoint, $params, ResponseInterface $response) |
||
41 |