| Conditions | 1 |
| Paths | 1 |
| Total Lines | 34 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\human\name\converter\toString\firstname; |
||
| 11 | function recipientOfHumanNameAsStringIs(name $name, recipient $recipient) :void |
||
|
|
|||
| 12 | { |
||
| 13 | ( |
||
| 14 | new trampoline\container\fifo( |
||
| 15 | new trampoline\functor( |
||
| 16 | function($block) use ($name) |
||
| 17 | { |
||
| 18 | $name->recipientOfFirstnameAsStringIs( |
||
| 19 | new recipient\block($block) |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | ), |
||
| 23 | new trampoline\functor( |
||
| 24 | function($block) use ($name) |
||
| 25 | { |
||
| 26 | $name->recipientOfLastnameAsStringIs( |
||
| 27 | new recipient\block($block) |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | ) |
||
| 31 | ) |
||
| 32 | ) |
||
| 33 | ->argumentsForBlockAre( |
||
| 34 | new block\functor( |
||
| 35 | function($firstname, $lastname) use ($recipient) |
||
| 36 | { |
||
| 37 | ( |
||
| 38 | new recipient\surround( |
||
| 39 | $firstname, |
||
| 40 | $lastname, |
||
| 41 | $recipient |
||
| 42 | ) |
||
| 43 | ) |
||
| 44 | ->stringIs(' ') |
||
| 45 | ; |
||
| 52 |
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.