| Total Complexity | 2 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\php\string\provider\suffix; |
||
| 7 | class provider |
||
| 8 | implements |
||
| 9 | php\string\provider |
||
| 10 | { |
||
| 11 | private |
||
| 12 | $suffix, |
||
| 13 | $providers |
||
| 14 | ; |
||
| 15 | |||
| 16 | function __construct(php\string\provider $suffix, php\string\provider... $providers) |
||
| 17 | { |
||
| 18 | $this->suffix = $suffix; |
||
| 19 | $this->providers = $providers; |
||
| 20 | } |
||
| 21 | |||
| 22 | function recipientOfStringIs(recipient $recipient) :void |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
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.