File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 */
1010namespace Framework \Database \Debug ;
1111
12+ use Framework \Database \Database ;
1213use Framework \Debug \Collector ;
1314
1415/**
1819 */
1920class DatabaseCollector extends Collector
2021{
22+ /**
23+ * @var string
24+ *
25+ * @deprecated Use {@see Database::getConnection()}
26+ */
2127 protected string $ serverInfo ;
2228
29+ /**
30+ * @param string $serverInfo
31+ *
32+ * @deprecated Use {@see Database::getConnection()}
33+ *
34+ * @codeCoverageIgnore
35+ */
2336 public function setServerInfo (string $ serverInfo ) : void
2437 {
38+ \trigger_error (
39+ 'Method ' . __METHOD__ . ' is deprecated ' ,
40+ \E_USER_DEPRECATED
41+ );
2542 $ this ->serverInfo = $ serverInfo ;
2643 }
2744
45+ /**
46+ * @return string
47+ *
48+ * @deprecated Use {@see Database::getConnection()}
49+ *
50+ * @codeCoverageIgnore
51+ */
2852 public function getServerInfo () : string
2953 {
54+ \trigger_error (
55+ 'Method ' . __METHOD__ . ' is deprecated ' ,
56+ \E_USER_DEPRECATED
57+ );
3058 return $ this ->serverInfo ;
3159 }
3260
You can’t perform that action at this time.
0 commit comments