@@ -60,6 +60,7 @@ class Uri implements UriInterface
60
60
protected $ fragment ;
61
61
62
62
/**
63
+ * @since 2.0.0
63
64
* @param string $dsn
64
65
*/
65
66
public function __construct ($ dsn = null )
@@ -70,6 +71,7 @@ public function __construct($dsn = null)
70
71
}
71
72
72
73
/**
74
+ * @since 2.0.0
73
75
* {@inheritDoc}
74
76
*/
75
77
public function __toString ()
@@ -85,6 +87,7 @@ public function __toString()
85
87
}
86
88
87
89
/**
90
+ * @since 2.0.0
88
91
* {@inheritDoc}
89
92
*/
90
93
public function getScheme ()
@@ -93,6 +96,7 @@ public function getScheme()
93
96
}
94
97
95
98
/**
99
+ * @since 2.0.0
96
100
* {@inheritDoc}
97
101
*/
98
102
public function getAuthority ()
@@ -101,6 +105,7 @@ public function getAuthority()
101
105
}
102
106
103
107
/**
108
+ * @since 2.0.0
104
109
* {@inheritDoc}
105
110
*/
106
111
public function getUserInfo ()
@@ -109,6 +114,7 @@ public function getUserInfo()
109
114
}
110
115
111
116
/**
117
+ * @since 2.0.0
112
118
* {@inheritDoc}
113
119
*/
114
120
public function getHost ()
@@ -117,6 +123,7 @@ public function getHost()
117
123
}
118
124
119
125
/**
126
+ * @since 2.0.0
120
127
* {@inheritDoc}
121
128
*/
122
129
public function getPort ()
@@ -125,6 +132,7 @@ public function getPort()
125
132
}
126
133
127
134
/**
135
+ * @since 2.0.0
128
136
* {@inheritDoc}
129
137
*/
130
138
public function getPath ()
@@ -133,6 +141,7 @@ public function getPath()
133
141
}
134
142
135
143
/**
144
+ * @since 2.0.0
136
145
* {@inheritDoc}
137
146
*/
138
147
public function getQuery ()
@@ -141,6 +150,7 @@ public function getQuery()
141
150
}
142
151
143
152
/**
153
+ * @since 2.0.0
144
154
* {@inheritDoc}
145
155
*/
146
156
public function getFragment ()
@@ -149,6 +159,7 @@ public function getFragment()
149
159
}
150
160
151
161
/**
162
+ * @since 2.0.0
152
163
* {@inheritDoc}
153
164
*/
154
165
public function withScheme ($ scheme )
@@ -159,6 +170,7 @@ public function withScheme($scheme)
159
170
}
160
171
161
172
/**
173
+ * @since 2.0.0
162
174
* {@inheritDoc}
163
175
*/
164
176
public function withUserInfo ($ user , $ password = null )
@@ -170,6 +182,7 @@ public function withUserInfo($user, $password = null)
170
182
}
171
183
172
184
/**
185
+ * @since 2.0.0
173
186
* {@inheritDoc}
174
187
*/
175
188
public function withHost ($ host )
@@ -180,6 +193,7 @@ public function withHost($host)
180
193
}
181
194
182
195
/**
196
+ * @since 2.0.0
183
197
* {@inheritDoc}
184
198
*/
185
199
public function withPort ($ port )
@@ -190,6 +204,7 @@ public function withPort($port)
190
204
}
191
205
192
206
/**
207
+ * @since 2.0.0
193
208
* {@inheritDoc}
194
209
*/
195
210
public function withPath ($ path )
@@ -200,6 +215,7 @@ public function withPath($path)
200
215
}
201
216
202
217
/**
218
+ * @since 2.0.0
203
219
* {@inheritDoc}
204
220
*/
205
221
public function withQuery ($ query )
@@ -210,6 +226,7 @@ public function withQuery($query)
210
226
}
211
227
212
228
/**
229
+ * @since 2.0.0
213
230
* {@inheritDoc}
214
231
*/
215
232
public function withFragment ($ fragment )
@@ -220,10 +237,15 @@ public function withFragment($fragment)
220
237
}
221
238
222
239
/**
240
+ * Parse DSN
241
+ *
242
+ * @since 2.0.0
243
+ * @internal
223
244
* @param string $dsn
224
245
*/
225
- public function parseDsn ($ dsn )
246
+ protected function parseDsn ($ dsn )
226
247
{
248
+ /** @var array */
227
249
$ components = parse_url ($ dsn );
228
250
229
251
$ this ->withScheme ($ components ['scheme ' ]);
0 commit comments