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

create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
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