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

TwitalLoaderTwigGte3::__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
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