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