mediatekformation

MethodTag extends AbstractTypeableTag
in package
implements TagInterface

This abstract class can be used as parent for all tags that use a type part in their content.

Interfaces, Classes, Traits and Enums

TagInterface

Table of Contents

LINE_FEED  = "\n"
Line feed to use in place of EOL
$description  : string
$indentation  : int|string
$isSourceDirty  : bool
$isStatic  : bool
$methodName  : string
$sourceContent  : string
$types  : array<string|int, mixed>
__construct()  : mixed
generate()  : string
getDescription()  : string
getIndentation()  : string
getMethodName()  : string
getName()  : string
getSourceContent()  : string
getTypes()  : array<string|int, mixed>
getTypesAsString()  : string
isSourceDirty()  : bool
isStatic()  : bool
setDescription()  : AbstractTypeableTag
setIndentation()  : AbstractGenerator
setIsStatic()  : MethodTag
setMethodName()  : MethodTag
setOptions()  : AbstractGenerator
setSourceContent()  : AbstractGenerator
setSourceDirty()  : AbstractGenerator
setTypes()  : AbstractTypeableTag
Array of types or string with types delimited by pipe (|) e.g. array('int', 'null') or "int|null"

Constants

Properties

Methods

__construct()

public __construct([string $methodName = null ][, array<string|int, mixed> $types = [] ][, string $description = null ][, bool $isStatic = false ]) : mixed
Parameters
$methodName : string = null
$types : array<string|int, mixed> = []
$description : string = null
$isStatic : bool = false
Return values
mixed

generate()

public generate() : string
Return values
string

getMethodName()

public getMethodName() : string
Return values
string

getName()

public getName() : string
Return values
string

getSourceContent()

public getSourceContent() : string
Return values
string

getTypes()

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

getTypesAsString()

public getTypesAsString([string $delimiter = '|' ]) : string
Parameters
$delimiter : string = '|'
Return values
string

isStatic()

public isStatic() : bool
Return values
bool

setTypes()

Array of types or string with types delimited by pipe (|) e.g. array('int', 'null') or "int|null"

public setTypes(array<string|int, mixed>|string $types) : AbstractTypeableTag
Parameters
$types : array<string|int, mixed>|string
Return values
AbstractTypeableTag

Search results