Completed
Pull Request — master (#70)
by Martin
02:14
created

TwitalLoaderTwigLt3   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Importance

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

5 Methods

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