Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
19 | 30 | public function __invoke( |
|
20 | ContainerInterface $container, |
||
21 | $requestedName, |
||
22 | array $options = null |
||
23 | ): HydratorInterface { |
||
24 | 30 | $extraction = new ClassMethods(); |
|
25 | 30 | $extraction->addStrategy('owner', new NestedEntityStrategy(new ClassMethods())); |
|
26 | 30 | $extraction->addStrategy('password', new ObscuredStrategy()); |
|
27 | 30 | $extraction->addStrategy('url', new RegexpObscuredStrategy( |
|
28 | 30 | '/:\w+@/', |
|
29 | 30 | ':*****@' |
|
30 | )); |
||
31 | |||
32 | 30 | return $extraction; |
|
33 | } |
||
34 | } |
||
35 |