| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\php\string\recipient\slashes; |
||
| 23 | function stringIs(string $string) :void |
||
|
|
|||
| 24 | { |
||
| 25 | ( |
||
| 26 | new charlist\converter\toString\official |
||
| 27 | ) |
||
| 28 | ->recipientOfCharlistAsStringIs( |
||
| 29 | $this->charlist, |
||
| 30 | new recipient\functor( |
||
| 31 | function($charlist) use ($string) |
||
| 32 | { |
||
| 33 | $this->recipient->stringIs(addcslashes($string, $charlist)); |
||
| 34 | } |
||
| 40 |
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.