Completed
Branch EDTR/refactor-master (bcaf81)
by
unknown
41:30 queued 30:37
created

GraphQLManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 39
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A init() 0 5 1
1
<?php
2
3
namespace EventEspresso\core\services\graphql;
4
5
use EventEspresso\core\services\collections\CollectionDetailsException;
6
use EventEspresso\core\services\collections\CollectionLoaderException;
7
8
/**
9
 * Class GraphQLManager
10
 * Loads and initializes all of the components required for integrating EE with GraphQL
11
 *
12
 * @package EventEspresso\core\services\graphql
13
 * @author  Brent Christensen
14
 * @since   $VID:$
15
 */
16
class GraphQLManager
17
{
18
19
    /**
20
     * @var TypesManager $types_manager
21
     */
22
    protected $types_manager;
23
24
    /**
25
     * @var ConnectionsManager $connections_manager
26
     */
27
    protected $connections_manager;
28
29
30
    /**
31
     * GraphQLManager constructor.
32
     *
33
     * @param TypesManager $types_manager
34
     * @param ConnectionsManager $connections_manager
35
     */
36
    public function __construct(TypesManager $types_manager, ConnectionsManager $connections_manager)
37
    {
38
        $this->types_manager = $types_manager;
39
        $this->connections_manager = $connections_manager;
40
    }
41
42
43
    /**
44
     * @throws CollectionDetailsException
45
     * @throws CollectionLoaderException
46
     * @since $VID:$
47
     */
48
    public function init()
49
    {
50
        $this->types_manager->init();
51
        $this->connections_manager->init();
52
    }
53
54
}