Completed
Branch master (df0330)
by Gabriel
08:50 queued 06:43
created

Application::getCachedRoutesPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Nip\Router\Tests\Fixtures\Application\Library;
4
5
/**
6
 * Class Application
7
 * @package Nip\Router\Tests\Fixtures\Application\Library
8
 */
9
class Application
10
{
11
12
    /**
13
     * Determine if the application routes are cached.
14
     *
15
     * @return bool
16
     */
17
    public function routesAreCached()
18
    {
19
        return ($this->getCachedRoutesPath());
20
    }
21
22
    /**
23
     * Get the path to the routes cache file.
24
     *
25
     * @return string
26
     */
27
    public function getCachedRoutesPath()
28
    {
29
        return $this->basePath() . '/bootstrap/cache/routes';
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function path()
36
    {
37
        return $this->basePath() . '/application';
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function basePath()
44
    {
45
        return TEST_FIXTURE_PATH;
46
    }
47
}
48