| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\php\string\provider\suffix; |
||
| 22 | function recipientOfStringIs(recipient $recipient) :void |
||
|
|
|||
| 23 | { |
||
| 24 | $buffer = new php\string\buffer\infinite; |
||
| 25 | |||
| 26 | ( |
||
| 27 | new fifo |
||
| 28 | ) |
||
| 29 | ->variablesForIteratorBlockAre( |
||
| 30 | new block\functor( |
||
| 31 | function($iterator, $provider) use ($buffer) |
||
| 32 | { |
||
| 33 | $provider |
||
| 34 | ->recipientOfStringIs( |
||
| 35 | new recipient\suffix\provider( |
||
| 36 | $this->suffix, |
||
| 37 | new recipient\buffer($buffer) |
||
| 38 | ) |
||
| 39 | ) |
||
| 40 | ; |
||
| 41 | |||
| 42 | } |
||
| 43 | ), |
||
| 44 | ... $this->providers |
||
| 45 | ) |
||
| 46 | ; |
||
| 47 | |||
| 48 | $buffer->recipientOfStringFromBufferIs($recipient); |
||
| 49 | } |
||
| 51 |
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.