| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\php\string\recipient\slashes; |
||
| 8 | class any |
||
| 9 | implements |
||
| 10 | recipient |
||
| 11 | { |
||
| 12 | private |
||
| 13 | $charlist, |
||
| 14 | $recipient |
||
| 15 | ; |
||
| 16 | |||
| 17 | function __construct(charlist $charlist, recipient $recipient) |
||
| 18 | { |
||
| 19 | $this->charlist = $charlist; |
||
| 20 | $this->recipient = $recipient; |
||
| 21 | } |
||
| 22 | |||
| 23 | function stringIs(string $string) :void |
||
| 34 | } |
||
| 35 | ) |
||
| 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.