Completed
Push — master ( cc6356...ca1999 )
by
unknown
04:54 queued 10s
created

NoDriverManager::findBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 4
1
<?php
2
3
/*
4
 * This file is part of the Sonata Project package.
5
 *
6
 * (c) Thomas Rabaix <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sonata\MediaBundle\Model;
13
14
use Sonata\CoreBundle\Model\ManagerInterface;
15
use Sonata\MediaBundle\Exception\NoDriverException;
16
17
/**
18
 * @internal
19
 *
20
 * @author Andrey F. Mindubaev <[email protected]>
21
 */
22
final class NoDriverManager implements ManagerInterface
23
{
24
    public function getClass()
25
    {
26
        throw new NoDriverException();
27
    }
28
29
    public function findAll()
30
    {
31
        throw new NoDriverException();
32
    }
33
34
    /**
35
     * @param int|null $limit
36
     * @param int|null $offset
37
     */
38
    public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
39
    {
40
        throw new NoDriverException();
41
    }
42
43
    public function findOneBy(array $criteria, array $orderBy = null)
44
    {
45
        throw new NoDriverException();
46
    }
47
48
    /**
49
     * @param mixed $id
50
     */
51
    public function find($id)
52
    {
53
        throw new NoDriverException();
54
    }
55
56
    public function create()
57
    {
58
        throw new NoDriverException();
59
    }
60
61
    /**
62
     * @param object $entity
63
     * @param bool   $andFlush
64
     */
65
    public function save($entity, $andFlush = true)
66
    {
67
        throw new NoDriverException();
68
    }
69
70
    /**
71
     * @param object $entity
72
     * @param bool   $andFlush
73
     */
74
    public function delete($entity, $andFlush = true)
75
    {
76
        throw new NoDriverException();
77
    }
78
79
    public function getTableName()
80
    {
81
        throw new NoDriverException();
82
    }
83
84
    public function getConnection()
85
    {
86
        throw new NoDriverException();
87
    }
88
}
89