mediatekformation

ParamTag 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
$sourceContent  : string
$types  : array<string|int, mixed>
$variableName  : string
__construct()  : mixed
fromReflection()  : ParamTag
generate()  : string
getDatatype()  : string
getDescription()  : string
getIndentation()  : string
getName()  : string
getParamName()  : string
getSourceContent()  : string
getTypes()  : array<string|int, mixed>
getTypesAsString()  : string
getVariableName()  : string
isSourceDirty()  : bool
setDatatype()  : ParamTag
setDescription()  : AbstractTypeableTag
setIndentation()  : AbstractGenerator
setOptions()  : AbstractGenerator
setParamName()  : ParamTag
setSourceContent()  : AbstractGenerator
setSourceDirty()  : AbstractGenerator
setTypes()  : AbstractTypeableTag
Array of types or string with types delimited by pipe (|) e.g. array('int', 'null') or "int|null"
setVariableName()  : ParamTag

Constants

Properties

$variableName

protected string $variableName

Methods

__construct()

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

generate()

public generate() : string
Return values
string

getDatatype()

public getDatatype() : string
Tags
deprecated

Deprecated in 2.3. Use getTypes() or getTypesAsString() instead

Return values
string

getName()

public getName() : string
Return values
string

getParamName()

public getParamName() : string
Tags
deprecated

Deprecated in 2.3. Use getVariableName() instead

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

getVariableName()

public getVariableName() : string
Return values
string

setDatatype()

public setDatatype(string $datatype) : ParamTag
Parameters
$datatype : string
Tags
deprecated

Deprecated in 2.3. Use setTypes() instead

Return values
ParamTag

setParamName()

public setParamName(string $paramName) : ParamTag
Parameters
$paramName : string
Tags
deprecated

Deprecated in 2.3. Use setVariableName() instead

Return values
ParamTag

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

setVariableName()

public setVariableName(string $variableName) : ParamTag
Parameters
$variableName : string
Return values
ParamTag

Search results