| Conditions | 1 |
| Paths | 1 |
| Total Lines | 31 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\php\string\recipient\buffer\prefix; |
||
| 23 | function stringIs(string $string) :void |
||
|
|
|||
| 24 | { |
||
| 25 | $this->provider |
||
| 26 | ->recipientOfStringIs( |
||
| 27 | new functor( |
||
| 28 | function($prefix) use ($string) |
||
| 29 | { |
||
| 30 | ( |
||
| 31 | new php\string\recipient\prefix( |
||
| 32 | $prefix, |
||
| 33 | new functor( |
||
| 34 | function($prefixedString) |
||
| 35 | { |
||
| 36 | ( |
||
| 37 | new php\string\recipient\prefix( |
||
| 38 | (string) $this->buffer, |
||
| 39 | new functor( |
||
| 40 | function($buffer) |
||
| 41 | { |
||
| 42 | $this->buffer = $buffer; |
||
| 43 | } |
||
| 44 | ) |
||
| 45 | ) |
||
| 46 | ) |
||
| 47 | ->stringIs($prefixedString) |
||
| 48 | ; |
||
| 49 | } |
||
| 50 | ) |
||
| 51 | ) |
||
| 52 | ) |
||
| 53 | ->stringIs($string) |
||
| 54 | ; |
||
| 77 |
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.