Completed
Push — master ( be1f89...dd7c75 )
by Artem
13:35
created

ServiceFactoryMock   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 19
rs 10
1
<?php
2
3
namespace RabbitMqModule\Service;
4
5
use Interop\Container\ContainerInterface;
6
use Interop\Container\Exception\ContainerException;
7
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
8
use Zend\ServiceManager\Exception\ServiceNotFoundException;
9
use Zend\ServiceManager\Factory\FactoryInterface;
10
11
/**
12
 * Class ServiceFactoryMock
13
 * @package RabbitMqModule\Service
14
 */
15
class ServiceFactoryMock implements FactoryInterface
16
{
17
     /**
18
     * Create an object
19
     *
20
     * @param  ContainerInterface $container
21
     * @param  string $requestedName
22
     * @param  null|array $options
23
     * @return object
24
     * @throws ServiceNotFoundException if unable to resolve the service.
25
     * @throws ServiceNotCreatedException if an exception is raised when
26
     *     creating a service.
27
     * @throws ContainerException if any other error occurs
28
     */
29
    public function __invoke(ContainerInterface $container, $requestedName, array $options = NULL)
0 ignored issues
show
Coding Style introduced by
TRUE, FALSE and NULL must be lowercase; expected null, but found NULL.
Loading history...
30
    {
31
        return true;
32
    }
33
}
34