phpDocumentor

VersionDescriptor extends TagDescriptor
in package

Descriptor representing the version tag on a class, interface, trait or file.

Table of Contents

Properties

$description  : DescriptionDescriptor|null
$errors  : Collection<string|int, Error>
$name  : string
$version  : string

Methods

__construct()  : mixed
Initializes the tag by setting the name and errors,
__toString()  : string
getDescription()  : DescriptionDescriptor
Returns the description for this element.
getErrors()  : Collection<string|int, Error>
Returns all errors associated with this tag.
getName()  : string
Returns the name for this element.
getVersion()  : string
Returns the current version for the associated element.
setDescription()  : void
Sets a description or none to inherit from a parent.
setVersion()  : void
Sets the version for the associated element.

Properties

$version

protected string $version = ''

Version string representing the current version of the element

Methods

__toString()

public __toString() : string
Return values
string

getName()

Returns the name for this element.

public getName() : string
Return values
string

getVersion()

Returns the current version for the associated element.

public getVersion() : string
Return values
string

setVersion()

Sets the version for the associated element.

public setVersion(string $version) : void
Parameters
$version : string

        
On this page

Search results