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

TwitalLoaderTwigLt3::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 3
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