UrlHelper::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace DH\DoctrineAuditBundle\Helper;
4
5
final class UrlHelper
6
{
7
    private function __construct()
8
    {
9
    }
10
11
    public static function paramToNamespace(string $entity): string
12
    {
13
        return str_replace('-', '\\', $entity);
14
    }
15
16
    public static function namespaceToParam(string $entity): string
17
    {
18
        return str_replace('\\', '-', $entity);
19
    }
20
}
21