| Conditions | 1 |
| Paths | 1 |
| Total Lines | 40 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\composer\depedency\version\semver\converter\toString\dot; |
||
| 15 | function recipientOfSemverVersionAsStringIs(semver $version, recipient $recipient) :void |
||
|
|
|||
| 16 | { |
||
| 17 | (new buffer\join('.')) |
||
| 18 | ->recipientOfStringFromProviderIs( |
||
| 19 | new provider\iterator\fifo( |
||
| 20 | new provider\block( |
||
| 21 | new block\functor( |
||
| 22 | function($recipient) use ($version) |
||
| 23 | { |
||
| 24 | parent::recipientOfMajorInSemverVersionAsStringIs( |
||
| 25 | $version, |
||
| 26 | $recipient |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | ) |
||
| 30 | ), |
||
| 31 | new provider\block( |
||
| 32 | new block\functor( |
||
| 33 | function($recipient) use ($version) |
||
| 34 | { |
||
| 35 | parent::recipientOfMinorInSemverVersionAsStringIs( |
||
| 36 | $version, |
||
| 37 | $recipient |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | ) |
||
| 41 | ), |
||
| 42 | new provider\block( |
||
| 43 | new block\functor( |
||
| 44 | function($recipient) use ($version) |
||
| 45 | { |
||
| 46 | parent::recipientOfPatchInSemverVersionAsStringIs( |
||
| 47 | $version, |
||
| 48 | $recipient |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | ) |
||
| 52 | ) |
||
| 53 | ), |
||
| 54 | $recipient |
||
| 55 | ) |
||
| 59 |
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.