Completed
Pull Request — 2.0 (#75)
by Julien
02:03
created

QueryManagerClient   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getClientType() 0 4 1
A getClientIdentifier() 0 4 1
1
<?php
2
/*
3
 * This file is part of the Pomm's Foundation package.
4
 *
5
 * (c) 2014 - 2015 Grégoire HUBERT <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace PommProject\Foundation\QueryManager;
11
12
use PommProject\Foundation\Client\Client;
13
14
/**
15
 * SimpleQueryManager
16
 *
17
 * Query system as a client.
18
 *
19
 * @package   Foundation
20
 * @copyright 2014 - 2015 Grégoire HUBERT
21
 * @author    Grégoire HUBERT
22
 * @license   X11 {@link http://opensource.org/licenses/mit-license.php}
23
 */
24
abstract class QueryManagerClient extends Client implements QueryManagerInterface
25
{
26
    /**
27
     * getClientType
28
     *
29
     * @see ClientInterface
30
     */
31
    public function getClientType()
32
    {
33
        return 'query_manager';
34
    }
35
36
    /**
37
     * getClientIdentifier
38
     *
39
     * @see ClientInterface
40
     */
41
    public function getClientIdentifier()
42
    {
43
        return get_class($this);
44
    }
45
}
46