GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

MockRouteManager   A
last analyzed

Complexity

Total Complexity 16

Size/Duplication

Total Lines 139
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 16
lcom 1
cbo 1
dl 0
loc 139
c 0
b 0
f 0
rs 10

14 Methods

Rating   Name   Duplication   Size   Complexity  
A findByName() 0 4 1
A findByNames() 0 4 1
A findByRoutePattern() 0 10 3
A findByRoutePatterns() 0 4 1
A all() 0 4 1
A add() 0 4 1
A remove() 0 4 1
A save() 0 4 1
A clear() 0 4 1
A getClass() 0 4 1
A findAllNameAndPattern() 0 4 1
A findVisibleByName() 0 4 1
A findVisibleByNames() 0 4 1
A findVisibleByRoutePatterns() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Tadcka package.
5
 *
6
 * (c) Tadas Gliaubicas <[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 Tadcka\Component\Routing\Tests\Mock\Model\Manager;
13
14
use Tadcka\Component\Routing\Model\Manager\RouteManager as BaseRouteManager;
15
use Tadcka\Component\Routing\Model\RouteInterface;
16
17
/**
18
 * @author Tadas Gliaubicas <[email protected]>
19
 *
20
 * @since 8/1/14 11:11 AM
21
 */
22
class MockRouteManager extends BaseRouteManager
23
{
24
    /**
25
     * @var array|RouteInterface[]
26
     */
27
    private $routes = array();
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function findByName($name)
33
    {
34
        // TODO: Implement findByName() method.
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function findByNames(array $names)
41
    {
42
        // TODO: Implement findByNames() method.
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48
    public function findByRoutePattern($routePattern)
49
    {
50
        foreach ($this->routes as $route) {
51
            if ($routePattern === $route->getRoutePattern()) {
52
                return $route;
53
            }
54
        }
55
56
        return null;
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public function findByRoutePatterns(array $routePatterns)
63
    {
64
        // TODO: Implement findByRoutePatterns() method.
65
    }
66
67
    /**
68
     * {@inheritdoc}
69
     */
70
    public function all()
71
    {
72
        // TODO: Implement all() method.
73
    }
74
75
    /**
76
     * {@inheritdoc}
77
     */
78
    public function add(RouteInterface $route, $save = false)
79
    {
80
        $this->routes[] = $route;
81
    }
82
83
    /**
84
     * {@inheritdoc}
85
     */
86
    public function remove(RouteInterface $route, $save = false)
87
    {
88
        // TODO: Implement delete() method.
89
    }
90
91
    /**
92
     * {@inheritdoc}
93
     */
94
    public function save()
95
    {
96
        // TODO: Implement save() method.
97
    }
98
99
    /**
100
     * {@inheritdoc}
101
     */
102
    public function clear()
103
    {
104
        // TODO: Implement clear() method.
105
    }
106
107
    /**
108
     * {@inheritdoc}
109
     */
110
    public function getClass()
111
    {
112
        return 'Tadcka\Component\Routing\Tests\Mock\Model\MockRoute';
113
    }
114
115
    /**
116
     * Find all route name and pattern.
117
     *
118
     * @return array
119
     */
120
    public function findAllNameAndPattern()
121
    {
122
        // TODO: Implement findAllNameAndPattern() method.
123
    }
124
125
    /**
126
     * Find visible route by name.
127
     *
128
     * @param string $name
129
     *
130
     * @return null|RouteInterface
131
     */
132
    public function findVisibleByName($name)
133
    {
134
        // TODO: Implement findVisibleByName() method.
135
    }
136
137
    /**
138
     * Find visible routes by many names.
139
     *
140
     * @param array $names
141
     *
142
     * @return array|RouteInterface[]
143
     */
144
    public function findVisibleByNames(array $names)
145
    {
146
        // TODO: Implement findVisibleByNames() method.
147
    }
148
149
    /**
150
     * Find visible routes by many route patterns.
151
     *
152
     * @param array $routePatterns
153
     *
154
     * @return array|RouteInterface[]
155
     */
156
    public function findVisibleByRoutePatterns(array $routePatterns)
157
    {
158
        // TODO: Implement findVisibleByRoutePatterns() method.
159
    }
160
}
161