1 | <?php |
||
26 | class PublicConnection |
||
27 | { |
||
28 | /** |
||
29 | * @var ConnectionInterface |
||
30 | */ |
||
31 | protected $connection; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $initBuffer; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $id; |
||
42 | |||
43 | /** |
||
44 | * The create time. |
||
45 | * |
||
46 | * @var int |
||
47 | */ |
||
48 | protected $createAt; |
||
49 | |||
50 | public function __construct(ConnectionInterface $connection, $initBuffer = '') |
||
57 | |||
58 | /** |
||
59 | * @codeCoverageIgnore |
||
60 | */ |
||
61 | public function __call($name, $arguments) |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getId() |
||
73 | |||
74 | /** |
||
75 | * @return ConnectionInterface |
||
76 | */ |
||
77 | public function getConnection() |
||
81 | |||
82 | /** |
||
83 | * @param string $initBuffer |
||
84 | */ |
||
85 | public function setInitBuffer($initBuffer) |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getInitBuffer() |
||
97 | |||
98 | /** |
||
99 | * Gets the waiting duration of the connection. |
||
100 | * |
||
101 | * @return float |
||
102 | */ |
||
103 | public function getWaitingDuration() |
||
107 | } |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.