| 1 | <?php |
||
| 19 | abstract class SentryClientAdaptor extends \Object |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param mixed $opt |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | protected function getOpts($opt) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Set the data we need from the writer. |
||
| 39 | * |
||
| 40 | * @param string $field |
||
| 41 | * @param mixed (string | array) $data |
||
| 42 | */ |
||
| 43 | abstract public function setData($field, $data); |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | abstract public function getLevel($level); |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Physically transport the data to the configured Sentry host. |
||
| 52 | * |
||
| 53 | * @param string $message |
||
| 54 | * @param array $extras |
||
| 55 | * @param array $data |
||
| 56 | * @param string $trace |
||
| 57 | * @return mixed |
||
| 58 | */ |
||
| 59 | abstract public function send($message, $extras = [], $data, $trace); |
||
| 60 | |||
| 61 | } |
||
| 62 |