forked from johnbillion/query-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to a DTO for the HTTP API collector.
- Loading branch information
1 parent
74457b5
commit ee43e20
Showing
7 changed files
with
90 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* HTTP data transfer object. | ||
* | ||
* @package query-monitor | ||
*/ | ||
|
||
class QM_Data_HTTP extends QM_Data { | ||
/** | ||
* @var array<string, array<string, mixed>> | ||
* @phpstan-var array<string, array{ | ||
* args: array<string, mixed>, | ||
* component: stdClass, | ||
* end: float, | ||
* filtered_trace: array<int, array<string, mixed>>, | ||
* info: array<string, mixed>|null, | ||
* local: bool, | ||
* ltime: float, | ||
* redirected_to?: string, | ||
* response: mixed[]|WP_Error, | ||
* start: float, | ||
* transport: string|null, | ||
* type: int, | ||
* url: string, | ||
* }> | ||
*/ | ||
public $http; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $ltime; | ||
|
||
/** | ||
* @var array<string, array<int, string>> | ||
* @phpstan-var array{ | ||
* alert?: array<int, string>, | ||
* warning?: array<int, string>, | ||
* } | ||
*/ | ||
public $errors; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters