ClassNameDetails
in package
FinalYes
Table of Contents
Properties
- $fullClassName : string
- $namespacePrefix : string
- $suffix : string|null
Methods
- __construct() : mixed
- getFullName() : string
- getRelativeName() : string
- Returns the original class name the user entered (after being cleaned up).
- getRelativeNameWithoutSuffix() : string
- getShortName() : string
Properties
$fullClassName
private
string
$fullClassName
$namespacePrefix
private
string
$namespacePrefix
$suffix
private
string|null
$suffix
= null
Methods
__construct()
public
__construct(string $fullClassName, string $namespacePrefix[, string|null $suffix = null ]) : mixed
Parameters
- $fullClassName : string
- $namespacePrefix : string
- $suffix : string|null = null
getFullName()
public
getFullName() : string
Return values
stringgetRelativeName()
Returns the original class name the user entered (after being cleaned up).
public
getRelativeName() : string
For example, assuming the namespace is App\Entity: App\Entity\Admin\User => Admin\User
Return values
stringgetRelativeNameWithoutSuffix()
public
getRelativeNameWithoutSuffix() : string
Return values
stringgetShortName()
public
getShortName() : string