| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace norsys\score\serializer\keyValue\part\container; |
||
| 21 | function keyValueSerializerIs(serializer $serializer) :void |
||
|
|
|||
| 22 | { |
||
| 23 | ( |
||
| 24 | new iterator\fifo |
||
| 25 | ) |
||
| 26 | ->variablesForIteratorBlockAre( |
||
| 27 | new iteratorBlock( |
||
| 28 | function($iterator, $part) use ($serializer) |
||
| 29 | { |
||
| 30 | $part |
||
| 31 | ->keyValueSerializerIs( |
||
| 32 | $serializer |
||
| 33 | ) |
||
| 34 | ; |
||
| 35 | } |
||
| 36 | ), |
||
| 37 | ... $this->parts |
||
| 38 | ) |
||
| 42 |
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.