| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\net\uri\path; |
||
| 23 | function recipientOfSegmentInNetUriPathAsStringFromConverterIs(path\segment\converter\toString $converter, recipient $recipient) :void |
||
|
|
|||
| 24 | { |
||
| 25 | $buffer = new recipient\buffer; |
||
| 26 | |||
| 27 | ( |
||
| 28 | new fifo( |
||
| 29 | ... $this->segments |
||
| 30 | ) |
||
| 31 | ) |
||
| 32 | ->blockForIteratorIs( |
||
| 33 | new block( |
||
| 34 | function($iterator, $segment) use ($converter, $buffer) { |
||
| 35 | $converter->recipientOfSegmentInNetUriPathAsStringIs($segment, $buffer); |
||
| 36 | } |
||
| 37 | ) |
||
| 38 | ) |
||
| 39 | ; |
||
| 40 | |||
| 41 | $buffer->recipientOfStringIs($recipient); |
||
| 42 | } |
||
| 44 |
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.