Passed
Push — master ( 7815e3...d45a7a )
by Pieter
04:53
created

NameGenerator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A generate() 0 3 1
1
<?php
2
3
namespace Avoran\RapidoAdapter\DoctrineDbalStorage;
4
5
class NameGenerator
6
{
7
    private $prefix;
8
9
    public function __construct($prefix)
10
    {
11
        $this->prefix = $prefix;
12
    }
13
14
    public function generate($id)
15
    {
16
        return $this->prefix . (string) $id;
17
    }
18
}
19