SocialBarHelper   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 42
rs 10
c 1
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A linkedInButton() 0 3 1
A googlePlusButton() 0 3 1
A xingButton() 0 3 1
A getName() 0 3 1
A twitterButton() 0 3 1
A socialButtons() 0 3 1
A __construct() 0 3 1
A facebookButton() 0 3 1
1
<?php
2
3
namespace Azine\SocialBarBundle\Templating;
4
5
use Symfony\Component\Templating\EngineInterface;
6
use Symfony\Component\Templating\Helper\Helper;
7
8
/**
9
 * @codeCoverageIgnoreStart
10
 */
11
class SocialBarHelper extends Helper
12
{
13
    protected $templating;
14
15
    public function __construct(EngineInterface $templating)
16
    {
17
        $this->templating = $templating;
18
    }
19
20
    public function socialButtons($parameters)
21
    {
22
        return $this->templating->render('AzineSocialBarBundle::socialButtons.html.twig', $parameters);
23
    }
24
25
    public function facebookButton($parameters)
26
    {
27
        return $this->templating->render('AzineSocialBarBundle::facebookButton.html.twig', $parameters);
28
    }
29
30
    public function twitterButton($parameters)
31
    {
32
        return $this->templating->render('AzineSocialBarBundle::twitterButton.html.twig', $parameters);
33
    }
34
35
    public function googlePlusButton($parameters)
36
    {
37
        return $this->templating->render('AzineSocialBarBundle::googlePlusButton.html.twig', $parameters);
38
    }
39
40
    public function linkedInButton($parameters)
41
    {
42
        return $this->templating->render('AzineSocialBarBundle::linkedInButton.html.twig', $parameters);
43
    }
44
45
    public function xingButton($parameters)
46
    {
47
        return $this->templating->render('AzineSocialBarBundle::xingButton.html.twig', $parameters);
48
    }
49
50
    public function getName()
51
    {
52
        return 'socialButtons';
53
    }
54
}
55