ContainerExtension   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTokenParsers() 0 6 1
A getName() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Superdesk Web Publisher Templates System.
5
 *
6
 * Copyright 2015 Sourcefabric z.ú. and contributors.
7
 *
8
 * For the full copyright and license information, please see the
9
 * AUTHORS and LICENSE files distributed with this source code.
10
 *
11
 * @copyright 2015 Sourcefabric z.ú
12
 * @license http://www.superdesk.org/license
13
 */
14
15
namespace SWP\Component\TemplatesSystem\Twig\Extension;
16
17
use SWP\Component\TemplatesSystem\Twig\TokenParser\ContainerTokenParser;
18
use Twig\Extension\AbstractExtension;
19
20
/**
21
 * @deprecated since 2.0, will be removed in 3.0
22
 */
23
class ContainerExtension extends AbstractExtension
24
{
25
    /**
26
     * @return array|\Twig\TokenParser\TokenParserInterface[]
27
     */
28
    public function getTokenParsers()
29
    {
30
        return [
31
            new ContainerTokenParser(),
0 ignored issues
show
Deprecated Code introduced by
The class SWP\Component\TemplatesS...er\ContainerTokenParser has been deprecated with message: since 2.0, will be removed in 3.0
Parser for container/endcontainer blocks.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
32
        ];
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getName()
39
    {
40
        return self::class;
41
    }
42
}
43