mediatekformation

FileScanner extends TokenArrayScanner
in package
implements ScannerInterface

Interfaces, Classes, Traits and Enums

ScannerInterface

Table of Contents

$annotationManager  : AnnotationManager
$docComment  : null
$file  : string
$infos  : array<string|int, mixed>
$isScanned  : bool
$nameInformation  : NameInformation
$tokens  : array<string|int, mixed>
__construct()  : mixed
__toString()  : mixed
export()  : mixed
Export
getAnnotationManager()  : AnnotationManager
getClass()  : ClassScanner|false
Return the class object from this scanner
getClasses()  : array<string|int, ClassScanner>
getClassNameInformation()  : bool|null|NameInformation
getClassNames()  : array<string|int, mixed>
getDocComment()  : string|null
Get doc comment
getFile()  : string
getFunctionNames()  : array<string|int, mixed>
getFunctions()  : array<string|int, mixed>
getIncludes()  : void
getNamespaces()  : array<string|int, mixed>
getUses()  : array<string|int, mixed>|null
hasNamespace()  : bool
Check for namespace
getUsesNoScan()  : null|array<string|int, mixed>
scan()  : mixed
Scan

Properties

Methods

export()

Export

public static export(mixed $tokens) : mixed
Parameters
$tokens : mixed
Return values
mixed

getClassNames()

public getClassNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDocComment()

Get doc comment

public getDocComment() : string|null
Tags
todo

Assignment of $this->docComment should probably be done in scan() and then $this->getDocComment() just retrieves it.

Return values
string|null

getFile()

public getFile() : string
Return values
string

getFunctionNames()

public getFunctionNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFunctions()

public getFunctions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNamespaces()

public getNamespaces() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUses()

public getUses([null|string $namespace = null ]) : array<string|int, mixed>|null
Parameters
$namespace : null|string = null
Return values
array<string|int, mixed>|null

hasNamespace()

Check for namespace

public hasNamespace(string $namespace) : bool
Parameters
$namespace : string
Return values
bool

getUsesNoScan()

protected getUsesNoScan(string $namespace) : null|array<string|int, mixed>
Parameters
$namespace : string
Tags
throws
InvalidArgumentException
Return values
null|array<string|int, mixed>

scan()

Scan

protected scan() : mixed
Tags
todo:

$this->docComment should be assigned for valid docblock during the scan instead of $this->getDocComment() (starting with T_DOC_COMMENT case)

throws
RuntimeException
Return values
mixed

Search results