Passed
Push — master ( 4a36e4...d17d8f )
by Asmir
08:07 queued 05:11
created

SerializerBaseExtension   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace JMS\Serializer\Twig;
6
7
use Twig\Extension\AbstractExtension;
8
9
abstract class SerializerBaseExtension extends AbstractExtension
10
{
11
    /**
12
     * @var string
13
     */
14
    protected $serializationFunctionsPrefix;
15
16
    /**
17
     * @return string
18
     *
19
     * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
20
     */
21
    public function getName()
22
    {
23
        return 'jms_serializer';
24
    }
25
26
    public function __construct(string $serializationFunctionsPrefix = '')
27
    {
28
        $this->serializationFunctionsPrefix = $serializationFunctionsPrefix;
29
    }
30
}
31