class ClassSymbol (View source)

Properties

protected string $fqn

Fully qualified class name.

protected ReflectionClass|null $facade

If the class is a facade, here we have the facade ReflectionClass, otherwise it's null.

protected string $alias

Fully-qualified class alias name.

protected string $aliasNamespace

Namespace of the alias

protected string $aliasBasename

Base name of the alias (that is, without namespace)

protected MethodSymbol[] $methods

Array of MethodSymbols.

protected string $comment

The class's docblock.

protected ReflectionClass $reflectionClass

The ReflectionClass instance.

Methods

__construct($alias, $fqn, $facade = null)

No description

resolveMethods()

Get the methods.

bool
isFacade()

No description

string
render(string $eol = "\n", string $padding = ' ', callable|null $methodFilter = null)

Render Class with methods.

string
getAliasNamespace()

Get the namespace of the alias.

Details

__construct($alias, $fqn, $facade = null)

No description

Parameters

$alias

string Class Alias

$fqn

string Fully qualified Class name

$facade

bool Is this a facade

protected resolveMethods()

Get the methods.

bool isFacade()

No description

Return Value

bool

ReflectionClass|null getFacadeReflectionClass()

No description

Return Value

ReflectionClass|null

string render(string $eol = "\n", string $padding = ' ', callable|null $methodFilter = null)

Render Class with methods.

Parameters

string $eol
string $padding
callable|null $methodFilter

Return Value

string

string getAliasNamespace()

Get the namespace of the alias.

Return Value

string