1 | <?php namespace Arcanedev\LaravelTracker\Trackers; |
||
13 | class ErrorTracker extends AbstractTracker implements ErrorTrackerContract |
||
14 | { |
||
15 | /* ----------------------------------------------------------------- |
||
16 | | Getters and Setters |
||
17 | | ----------------------------------------------------------------- |
||
18 | */ |
||
19 | |||
20 | /** |
||
21 | * Get the model. |
||
22 | * |
||
23 | * @return \Arcanedev\LaravelTracker\Models\Error |
||
24 | */ |
||
25 | 105 | protected function getModel() |
|
29 | |||
30 | /* ----------------------------------------------------------------- |
||
31 | | Main Methods |
||
32 | | ----------------------------------------------------------------- |
||
33 | */ |
||
34 | |||
35 | /** |
||
36 | * Track the exception error. |
||
37 | * |
||
38 | * @param \Exception $exception |
||
39 | * |
||
40 | * @return int |
||
41 | */ |
||
42 | 105 | public function track(Exception $exception) |
|
49 | |||
50 | /* ----------------------------------------------------------------- |
||
51 | | Other Methods |
||
52 | | ----------------------------------------------------------------- |
||
53 | */ |
||
54 | |||
55 | /** |
||
56 | * Get the code from the exception. |
||
57 | * |
||
58 | * @param \Exception $exception |
||
59 | * |
||
60 | * @return int|mixed|null |
||
61 | */ |
||
62 | 105 | public function getCode(Exception $exception) |
|
72 | } |
||
73 |