Completed
Push — master ( 1063d7...a7489f )
by Laurent
03:16
created

SettingsRepository::getAllItems()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
/**
4
 * Entité Settings.
5
 *
6
 * PHP Version 5
7
 *
8
 * @author    Quétier Laurent <[email protected]>
9
 * @copyright 2014 Dev-Int GLSR
10
 * @license   http://opensource.org/licenses/gpl-license.php GNU Public License
11
 *
12
 * @version GIT: <git_id>
13
 *
14
 * @link https://github.com/Dev-Int/glsr
15
 */
16
namespace AppBundle\Repository\Settings;
17
18
use Doctrine\ORM\EntityRepository;
19
20
/**
21
 * SettingsRepository Entité Settings.
22
 *
23
 * @category Entity
24
 */
25
class SettingsRepository extends EntityRepository
26
{
27
    /**
28
     * Affiche toutes les configurations.
29
     *
30
     * @return QueryBuilder Requête DQL
31
     */
32
    public function getAllItems()
33
    {
34
        $query = $this->createQueryBuilder('s')
35
            ->getQuery()->getResult();
36
        
37
        return $query;
38
    }
39
40
    /**
41
     * Affiche les configurations actives.
42
     *
43
     * @return QueryBuilder Requête DQL
44
     */
45
    public function getItems()
46
    {
47
        $query = $this->getAllItems();
48
49
        return $query;
50
    }
51
}
52