| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\php\string\recipient; |
||
| 22 | function stringIs(string $string) :void |
||
|
|
|||
| 23 | { |
||
| 24 | ( |
||
| 25 | new container\fifo(... $this->recipients) |
||
| 26 | ) |
||
| 27 | ->blockForIteratorIs( |
||
| 28 | new iterator\block\functor( |
||
| 29 | function($iterator, $recipient) use ($string) |
||
| 30 | { |
||
| 31 | $recipient->stringIs($string); |
||
| 32 | } |
||
| 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.