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

SomeBuiltAutowiredServiceFactory   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
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
6
7
class SomeBuiltAutowiredServiceFactory
8
{
9
    /**
10
     * @param SomeService $someService
11
     * @param EventDispatcherInterface $eventDispatcher
12
     *
13
     * @return SomeBuiltAutowiredService
14
     */
15
    public function create(
16
        SomeService $someService,
17
        EventDispatcherInterface $eventDispatcher
18
    ) : SomeBuiltAutowiredService {
19
        return new SomeBuiltAutowiredService($someService, $eventDispatcher);
20
    }
21
}
22