1 | <?php |
||
23 | class SentryHandler extends AbstractProcessingHandler |
||
24 | { |
||
25 | use Injectable; |
||
26 | |||
27 | /** |
||
28 | * @param int $level |
||
29 | * @param boolean $bubble |
||
30 | * @param array $extras |
||
31 | * @return void |
||
|
|||
32 | */ |
||
33 | public function __construct(int $level = Logger::DEBUG, bool $bubble = true, array $extras = []) |
||
41 | |||
42 | /** |
||
43 | * write() forms the entry point into the physical sending of the error. The |
||
44 | * sending itself is done by the current adaptor's `send()` method. |
||
45 | * |
||
46 | * @param array $record An array of error-context metadata with the following |
||
47 | * available keys: |
||
48 | * |
||
49 | * - message |
||
50 | * - context |
||
51 | * - level |
||
52 | * - level_name |
||
53 | * - channel |
||
54 | * - datetime |
||
55 | * - extra |
||
56 | * - formatted |
||
57 | * |
||
58 | * @return void |
||
59 | */ |
||
60 | protected function write(array $record) : void |
||
76 | |||
77 | /** |
||
78 | * @return SentryAdaptor |
||
79 | */ |
||
80 | public function getClient() : SentryAdaptor |
||
84 | } |
||
85 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.