Skip to content

Commit 02e1057

Browse files
author
Martin Brecht-Precht
committed
Moved the class constants from Url implementation to Url interface
1 parent 07e45fc commit 02e1057

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: src/Url.php

-8
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
class Url implements UrlInterface
1111
{
1212

13-
const URL_SCHEME_SEPARATOR = '://';
14-
const URL_CREDENTIALS_SEPARATOR = ':';
15-
const URL_AUTHENTICATION_SEPARATOR = '@';
16-
const URL_PORT_SEPARATOR = ':';
17-
const URL_QUERYSTRING_SEPARATOR = '?';
18-
const URL_QUERY_SEPARATOR = '&';
19-
const URL_FRAGMENT_SEPARATOR = '#';
20-
2113
/**
2214
* @var string
2315
*/

Diff for: src/UrlInterface.php

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
interface UrlInterface
1111
{
1212

13+
const URL_SCHEME_SEPARATOR = '://';
14+
const URL_CREDENTIALS_SEPARATOR = ':';
15+
const URL_AUTHENTICATION_SEPARATOR = '@';
16+
const URL_PORT_SEPARATOR = ':';
17+
const URL_QUERYSTRING_SEPARATOR = '?';
18+
const URL_QUERY_SEPARATOR = '&';
19+
const URL_FRAGMENT_SEPARATOR = '#';
20+
1321
/**
1422
* Url constructor.
1523
*

0 commit comments

Comments
 (0)