mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
15 lines
335 B
PHP
15 lines
335 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Rector\Builder\Naming;
|
|
|
|
final class NameResolver
|
|
{
|
|
public function resolvePropertyNameFromType(string $serviceType): string
|
|
{
|
|
$serviceNameParts = explode('\\', $serviceType);
|
|
$lastNamePart = array_pop($serviceNameParts);
|
|
|
|
return lcfirst($lastNamePart);
|
|
}
|
|
}
|