| Total Complexity | 3 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\php\version\converter\toString; |
||
| 6 | class official |
||
| 7 | implements |
||
| 8 | toString |
||
| 9 | { |
||
| 10 | private |
||
| 11 | $converter |
||
| 12 | ; |
||
| 13 | |||
| 14 | function __construct(version\number\converter\toString $converter = null) |
||
| 15 | { |
||
| 16 | $this->converter = $converter ?: new version\number\converter\toString\asInteger; |
||
| 17 | } |
||
| 18 | |||
| 19 | function recipientOfPhpVersionAsStringIs(version $version, recipient $recipient) :void |
||
| 67 | ) |
||
| 68 | ; |
||
| 71 |
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.