Test Setup Failed
Push — master ( 1595cb...050b68 )
by Kirill
21:00
created

HumanReadableResolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A resolve() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of Railt package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Railt\SDL\Backend\NameResolver;
13
14
/**
15
 * Class HumanReadableResolver
16
 */
17
class HumanReadableResolver implements NameResolverInterface
18
{
19
    /**
20
     * @param string $name
21
     * @param array $args
22
     * @return string
23
     */
24
    public function resolve(string $name, array $args = []): string
25
    {
26
        return $name . 'Of' . \implode('And', $args) . 'Type';
27
    }
28
}
29