HelloName::greet()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\ModuleWithExternalDependencies\Supplier\Service;
6
7
use GacelaTest\Feature\Framework\ModuleWithExternalDependencies\Dependent;
8
9
use function sprintf;
10
11
final class HelloName
12
{
13
    public function __construct(
14
        private readonly Dependent\FacadeInterface $dependentFacade,
15
    ) {
16
    }
17
18
    public function greet(string $name): array
19
    {
20
        return [
21
            sprintf('Hello, %s from Supplier.', $name),
22
            ...$this->dependentFacade->greet($name),
23
        ];
24
    }
25
}
26