PropertyTag
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
Table of Contents
- LINE_FEED = "\n"
- Line feed to use in place of EOL
- $description : string
- $indentation : int|string
- $isSourceDirty : bool
- $propertyName : string
- $sourceContent : string
- $types : array<string|int, mixed>
- __construct() : mixed
- generate() : string
- getDescription() : string
- getIndentation() : string
- getName() : string
- getPropertyName() : string
- getSourceContent() : string
- getTypes() : array<string|int, mixed>
- getTypesAsString() : string
- isSourceDirty() : bool
- setDescription() : AbstractTypeableTag
- setIndentation() : AbstractGenerator
- setOptions() : AbstractGenerator
- setPropertyName() : self
- 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
LINE_FEED
Line feed to use in place of EOL
public
mixed
LINE_FEED
= "\n"
Properties
$description
protected
string
$description
$indentation
protected
int|string
$indentation
= ' '
4 spaces by default
$isSourceDirty
protected
bool
$isSourceDirty
= true
$propertyName
protected
string
$propertyName
$sourceContent
protected
string
$sourceContent
$types
protected
array<string|int, mixed>
$types
= []
Methods
__construct()
public
__construct([string $propertyName = null ][, array<string|int, mixed> $types = [] ][, string $description = null ]) : mixed
Parameters
- $propertyName : string = null
- $types : array<string|int, mixed> = []
- $description : string = null
Return values
mixed —generate()
public
generate() : string
Return values
string —getDescription()
public
getDescription() : string
Return values
string —getIndentation()
public
getIndentation() : string
Return values
string —getName()
public
getName() : string
Return values
string —getPropertyName()
public
getPropertyName() : 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 —isSourceDirty()
public
isSourceDirty() : bool
Return values
bool —setDescription()
public
setDescription(string $description) : AbstractTypeableTag
Parameters
- $description : string
Return values
AbstractTypeableTag —setIndentation()
public
setIndentation(string $indentation) : AbstractGenerator
Parameters
- $indentation : string
Return values
AbstractGenerator —setOptions()
public
setOptions(array<string|int, mixed>|Traversable $options) : AbstractGenerator
Parameters
- $options : array<string|int, mixed>|Traversable
Tags
Return values
AbstractGenerator —setPropertyName()
public
setPropertyName(string $propertyName) : self
Parameters
- $propertyName : string
Return values
self —setSourceContent()
public
setSourceContent(string $sourceContent) : AbstractGenerator
Parameters
- $sourceContent : string
Return values
AbstractGenerator —setSourceDirty()
public
setSourceDirty([bool $isSourceDirty = true ]) : AbstractGenerator
Parameters
- $isSourceDirty : bool = true
Return values
AbstractGenerator —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