Completed
Pull Request — master (#7)
by
unknown
04:26
created

SomeServiceWithOptionalConstructorArgumentsFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 6 1
1
<?php
2
3
namespace Symplify\DefaultAutowire\Tests\Source;
4
5
class SomeServiceWithOptionalConstructorArgumentsFactory
6
{
7
    /**
8
     * @param SomeService|null $someService
9
     * @param array $arg
10
     *
11
     * @return SomeServiceWithOptionalConstructorArguments
12
     */
13
    public function create(
14
        SomeService $someService = null,
15
        array $arg = []
16
    ) : SomeServiceWithOptionalConstructorArguments {
17
        return new SomeServiceWithOptionalConstructorArguments($someService, $arg);
18
    }
19
}
20