Documentation

ClassUnit extends CodeUnit
in package

FinalYes
Tags
psalm-immutable

Table of Contents

Methods

forClass()  : ClassUnit
forClassMethod()  : ClassMethodUnit
forFileWithAbsolutePath()  : FileUnit
forFunction()  : FunctionUnit
forInterface()  : InterfaceUnit
forInterfaceMethod()  : InterfaceMethodUnit
forTrait()  : TraitUnit
forTraitMethod()  : TraitMethodUnit
isClass()  : bool
isClassMethod()  : bool
isFile()  : bool
isFunction()  : bool
isInterface()  : bool
isInterfaceMethod()  : bool
isTrait()  : bool
isTraitMethod()  : bool
name()  : string
sourceFileName()  : string
sourceLines()  : array<string|int, mixed>

Methods

isClass()

public isClass() : bool
Tags
psalm-assert-if-true

ClassUnit $this

Return values
bool

isClassMethod()

public isClassMethod() : bool
Return values
bool

isFile()

public isFile() : bool
Return values
bool

isFunction()

public isFunction() : bool
Return values
bool

isInterface()

public isInterface() : bool
Return values
bool

isInterfaceMethod()

public isInterfaceMethod() : bool
Return values
bool

isTrait()

public isTrait() : bool
Return values
bool

isTraitMethod()

public isTraitMethod() : bool
Return values
bool

name()

public name() : string
Return values
string

sourceFileName()

public sourceFileName() : string
Return values
string

sourceLines()

public sourceLines() : array<string|int, mixed>
Tags
psalm-return

list

Return values
array<string|int, mixed>

        
On this page

Search results