1 | <?php |
||
25 | class SentryHandler extends AbstractProcessingHandler |
||
26 | { |
||
27 | |||
28 | use Injectable; |
||
29 | |||
30 | /** |
||
31 | * @param int $level |
||
32 | * @param boolean $bubble |
||
33 | * @param array $extras |
||
34 | * @return void |
||
|
|||
35 | */ |
||
36 | public function __construct(int $level = Logger::DEBUG, bool $bubble = true, array $extras = []) |
||
44 | |||
45 | /** |
||
46 | * write() forms the entry point into the physical sending of the error. The |
||
47 | * sending itself is done by the current adaptor's `send()` method. |
||
48 | * |
||
49 | * @param array $record An array of error-context metadata with the following |
||
50 | * available keys: |
||
51 | * |
||
52 | * - message |
||
53 | * - context |
||
54 | * - level |
||
55 | * - level_name |
||
56 | * - channel |
||
57 | * - datetime |
||
58 | * - extra |
||
59 | * - formatted |
||
60 | * |
||
61 | * @return void |
||
62 | */ |
||
63 | protected function write(array $record) : void |
||
83 | |||
84 | /** |
||
85 | * @return SentryAdaptor |
||
86 | */ |
||
87 | public function getClient() : SentryAdaptor |
||
91 | |||
92 | /** |
||
93 | * @return {@link Scope} |
||
94 | */ |
||
95 | public function getMessageScope() : Scope |
||
99 | |||
100 | } |
||
101 |
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.