LicenseTag
extends AbstractGenerator
in package
implements
TagInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- LINE_FEED = "\n"
- Line feed to use in place of EOL
- $indentation : int|string
- $isSourceDirty : bool
- $licenseName : string
- $sourceContent : string
- $url : string
- __construct() : mixed
- fromReflection() : ReturnTag
- generate() : string
- getIndentation() : string
- getLicenseName() : string
- getName() : string
- getSourceContent() : string
- getUrl() : string
- isSourceDirty() : bool
- setIndentation() : AbstractGenerator
- setLicenseName() : LicenseTag
- setOptions() : AbstractGenerator
- setSourceContent() : AbstractGenerator
- setSourceDirty() : AbstractGenerator
- setUrl() : LicenseTag
Constants
LINE_FEED
Line feed to use in place of EOL
public
mixed
LINE_FEED
= "\n"
Properties
$indentation
protected
int|string
$indentation
= ' '
4 spaces by default
$isSourceDirty
protected
bool
$isSourceDirty
= true
$licenseName
protected
string
$licenseName
$sourceContent
protected
string
$sourceContent
$url
protected
string
$url
Methods
__construct()
public
__construct([string $url = null ][, string $licenseName = null ]) : mixed
Parameters
- $url : string = null
- $licenseName : string = null
Return values
mixed —fromReflection()
public
static fromReflection(TagInterface $reflectionTag) : ReturnTag
Parameters
- $reflectionTag : TagInterface
Tags
Return values
ReturnTag —generate()
public
generate() : string
Return values
string —getIndentation()
public
getIndentation() : string
Return values
string —getLicenseName()
public
getLicenseName() : string
Return values
string —getName()
public
getName() : string
Return values
string —getSourceContent()
public
getSourceContent() : string
Return values
string —getUrl()
public
getUrl() : string
Return values
string —isSourceDirty()
public
isSourceDirty() : bool
Return values
bool —setIndentation()
public
setIndentation(string $indentation) : AbstractGenerator
Parameters
- $indentation : string
Return values
AbstractGenerator —setLicenseName()
public
setLicenseName(string $name) : LicenseTag
Parameters
- $name : string
Return values
LicenseTag —setOptions()
public
setOptions(array<string|int, mixed>|Traversable $options) : AbstractGenerator
Parameters
- $options : array<string|int, mixed>|Traversable
Tags
Return values
AbstractGenerator —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 —setUrl()
public
setUrl(string $url) : LicenseTag
Parameters
- $url : string