Resource::getFunctions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 15
rs 9.4285
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
3
namespace DoS\ResourceBundle\Twig\Extension;
4
5
use Sylius\Bundle\ResourceBundle\Twig\ResourceExtension;
6
7
class Resource extends ResourceExtension
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function getFunctions()
13
    {
14
        return array_merge(parent::getFunctions(), array(
15
            new \Twig_SimpleFunction(
0 ignored issues
show
Deprecated Code introduced by
The class Twig_SimpleFunction has been deprecated with message: to be removed in 3.0

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...
16
                'ui_sort',
17
                array($this, 'renderSortingLink'),
18
                array('needs_environment' => true, 'is_safe' => array('html'))
19
            ),
20
            new \Twig_SimpleFunction(
0 ignored issues
show
Deprecated Code introduced by
The class Twig_SimpleFunction has been deprecated with message: to be removed in 3.0

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...
21
                'ui_paginate',
22
                array($this, 'renderPaginateSelect'),
23
                array('needs_environment' => true, 'is_safe' => array('html'))
24
            ),
25
        ));
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getName()
32
    {
33
        return 'ui_resource';
34
    }
35
}
36