Completed
Pull Request — master (#41)
by Níckolas Daniel
06:50 queued 02:19
created

AuthorSlugBuilder::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace PODEntender\Domain\Model\Author;
4
5
use Illuminate\Support\Str;
6
7
class AuthorSlugBuilder
8
{
9
    const PREFIX = 'autores/';
10
11
    public function build(string $authorUid): string
12
    {
13
        return self::PREFIX . Str::slug($authorUid, '-');
14
    }
15
}
16