| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class NameGenerator |
||
| 6 | { |
||
| 7 | private $prefix; |
||
| 8 | private $suffix; |
||
| 9 | |||
| 10 | public function __construct($prefix, $suffix) |
||
| 11 | { |
||
| 12 | $this->prefix = $prefix; |
||
| 13 | $this->suffix = $suffix; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function generate($id) |
||
| 17 | { |
||
| 18 | return $this->prefix . (string) $id; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function generateWithSuffix($id) |
||
| 24 | } |
||
| 25 | } |
||
| 26 |