mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-08 03:59:30 +00:00
Made ElementTypeNameGenerator class readonly
This commit is contained in:
parent
0d0effb290
commit
92ca46210a
1 changed files with 2 additions and 2 deletions
|
|
@ -39,10 +39,10 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
||||||
/**
|
/**
|
||||||
* @see \App\Tests\Services\ElementTypeNameGeneratorTest
|
* @see \App\Tests\Services\ElementTypeNameGeneratorTest
|
||||||
*/
|
*/
|
||||||
class ElementTypeNameGenerator
|
final readonly class ElementTypeNameGenerator
|
||||||
{
|
{
|
||||||
|
|
||||||
public function __construct(protected TranslatorInterface $translator, private readonly EntityURLGenerator $entityURLGenerator)
|
public function __construct(private TranslatorInterface $translator, private EntityURLGenerator $entityURLGenerator)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue