Total Complexity | 7 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | class SentryLoggerConfig implements SentryLoggerConfigInterface |
||
20 | { |
||
21 | /** @var string */ |
||
22 | protected $dsn; |
||
23 | /** @var array */ |
||
24 | protected $options; |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getDsn() : string |
||
30 | { |
||
31 | return $this->dsn; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param string $dsn |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function setDsn(string $dsn) |
||
40 | { |
||
41 | $this->dsn = $dsn; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getOptions() : array |
||
48 | { |
||
49 | return $this->options; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param array $options |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | public function setOptions(array $options) |
||
58 | { |
||
59 | $this->options = $options; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * Exchange array to properties. |
||
64 | * |
||
65 | * @param array $data The data to exchange. |
||
66 | * |
||
67 | * @return void |
||
68 | * @throws ReflectionException |
||
69 | */ |
||
70 | public function exchangeArray(array $data) |
||
80 | } |
||
81 | } |
||
82 | } |
||
83 | } |
||
84 |