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