| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 5 | public function properties(): string |
|
| 31 | { |
||
| 32 | return (string) $this |
||
| 33 | 5 | ->dependencies |
|
| 34 | 5 | ->reduce( |
|
| 35 | 5 | new Sequence, |
|
| 36 | 5 | static function(Sequence $properties, Dependency $dependency): Sequence { |
|
| 37 | 3 | return $properties->add((string) new PropertyName($dependency->name())); |
|
| 38 | 5 | } |
|
| 39 | ) |
||
| 40 | 5 | ->map(static function(string $property): string { |
|
| 41 | 3 | return (string) Str::of($property) |
|
| 42 | 3 | ->prepend(' private $') |
|
| 43 | 3 | ->append(';'); |
|
| 44 | 5 | }) |
|
| 45 | 5 | ->join("\n"); |
|
| 46 | } |
||
| 66 |