| Conditions | 1 |
| Paths | 1 |
| Total Lines | 38 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\php\aClass\name\converter\toString; |
||
| 17 | function recipientOfPhpClassNameAsStringIs(name $name, recipient $recipient) :void |
||
|
|
|||
| 18 | { |
||
| 19 | ( |
||
| 20 | new trampoline\container\fifo( |
||
| 21 | new trampoline\functor( |
||
| 22 | function($block) use ($name) { |
||
| 23 | $name |
||
| 24 | ->recipientOfPhpNamespaceFromToStringConverterIs( |
||
| 25 | new aNamespace\converter\toString\official, |
||
| 26 | new recipient\block($block) |
||
| 27 | ) |
||
| 28 | ; |
||
| 29 | } |
||
| 30 | ), |
||
| 31 | new trampoline\functor( |
||
| 32 | function($block) use ($name) { |
||
| 33 | $name |
||
| 34 | ->recipientOfPhpIdentifierFromToStringConverterIs( |
||
| 35 | new identifier\converter\toString\raw, |
||
| 36 | new recipient\block($block) |
||
| 37 | ) |
||
| 38 | ; |
||
| 39 | } |
||
| 40 | ) |
||
| 41 | ) |
||
| 42 | ) |
||
| 43 | ->argumentsForBlockAre( |
||
| 44 | new block\functor( |
||
| 45 | function($namespace, $identifier) use ($recipient) |
||
| 46 | { |
||
| 47 | ( |
||
| 48 | new recipient\surround( |
||
| 49 | $namespace, |
||
| 50 | $identifier, |
||
| 51 | $recipient |
||
| 52 | ) |
||
| 53 | ) |
||
| 54 | ->stringIs('\\') |
||
| 55 | ; |
||
| 62 |
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.