Completed
Push — master ( 2b8a9b...6ad9e4 )
by Asmir
10:57 queued 10:57
created

TwitalLoaderTwigGte3   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
cbo 1
dl 0
loc 24
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getSourceContext() 0 4 1
A getCacheKey() 0 4 1
A isFresh() 0 4 1
A exists() 0 4 1
1
<?php
2
3
namespace Goetas\Twital;
4
5
use Twig\Loader\LoaderInterface;
6
use Twig\Source;
7
8
/**
9
 * @author Martin Hasoň <[email protected]>
10
 */
11
abstract class TwitalLoaderTwigGte3 implements LoaderInterface
12
{
13
    use TwitalLoaderTrait;
14
15
    public function getSourceContext(string $name): Source
16
    {
17
        return $this->doGetSourceContext($name);
18
    }
19
20
    public function getCacheKey(string $name): string
21
    {
22
        return $this->loader->getCacheKey($name);
23
    }
24
25
    public function isFresh(string $name, int $time): bool
26
    {
27
        return $this->loader->isFresh($name, $time);
28
    }
29
30
    public function exists(string $name)
31
    {
32
        return $this->doExists($name);
33
    }
34
}
35