Documentation

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

Methods

__construct()

public __construct(string $fullClassName, string $namespacePrefix[, string|null $suffix = null ]) : mixed
Parameters
$fullClassName : string
$namespacePrefix : string
$suffix : string|null = null

getRelativeName()

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
string

getRelativeNameWithoutSuffix()

public getRelativeNameWithoutSuffix() : string
Return values
string

        
On this page

Search results