| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\net\uri; |
||
| 8 | class any |
||
| 9 | implements |
||
| 10 | uri |
||
| 11 | { |
||
| 12 | private |
||
| 13 | $scheme, |
||
| 14 | $hierPart |
||
| 15 | ; |
||
| 16 | |||
| 17 | function __construct(uri\scheme $scheme, uri\hierPart $hierPart) |
||
| 18 | { |
||
| 19 | $this->scheme = $scheme; |
||
| 20 | $this->hierPart = $hierPart; |
||
| 21 | } |
||
| 22 | |||
| 23 | function recipientOfUriAsStringFromConverterIs(uri\converter\toString $converter, recipient $recipient) :void |
||
|
|
|||
| 24 | { |
||
| 25 | $converter->recipientOfNetUriAsStringIs($this, $recipient); |
||
| 26 | } |
||
| 27 | |||
| 28 | function recipientOfNetUriSchemeAsStringFromConverterIs(uri\scheme\converter\toString $converter, recipient $recipient) :void |
||
| 29 | { |
||
| 30 | $converter->recipientOfNetUriSchemeAsStringIs($this->scheme, $recipient); |
||
| 31 | } |
||
| 32 | |||
| 33 | function recipientOfNetUriHierPartAsStringFromConverterIs(uri\hierPart\converter\toString $converter, recipient $recipient) :void |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.