PHP Class phpDocumentor\Descriptor\TraitDescriptor

Inheritance: extends phpDocumentor\Descriptor\DescriptorAbstract, implements phpDocumentor\Descriptor\Interfaces\TraitInterface
显示文件 Open project: phpDocumentor/phpDocumentor2 Class Usage Examples

Protected Properties

Property Type Description
$methods phpDocumentor\Descriptor\Collection
$properties phpDocumentor\Descriptor\Collection
$usedTraits phpDocumentor\Descriptor\Collection

Public Methods

Method Description
__construct ( ) Initializes the all properties representing a collection with a new Collection object.
getInheritedMethods ( ) {@inheritDoc}
getInheritedProperties ( ) {@inheritDoc}
getMagicMethods ( ) : phpDocumentor\Descriptor\Collection
getMagicProperties ( ) : phpDocumentor\Descriptor\Collection
getMethods ( ) {@inheritDoc}
getProperties ( ) {@inheritDoc}
getUsedTraits ( ) : phpDocumentor\Descriptor\Collection Returns the traits used by this class.
setMethods ( phpDocumentor\Descriptor\Collection $methods ) {@inheritDoc}
setPackage ( string $package )
setProperties ( phpDocumentor\Descriptor\Collection $properties ) {@inheritDoc}
setUsedTraits ( phpDocumentor\Descriptor\Collection $usedTraits ) : void Sets a collection of all traits used by this class.

Method Details

__construct() public method

Initializes the all properties representing a collection with a new Collection object.
public __construct ( )

getInheritedMethods() public method

{@inheritDoc}
public getInheritedMethods ( )

getInheritedProperties() public method

{@inheritDoc}

getMagicMethods() public method

public getMagicMethods ( ) : phpDocumentor\Descriptor\Collection
return phpDocumentor\Descriptor\Collection

getMagicProperties() public method

public getMagicProperties ( ) : phpDocumentor\Descriptor\Collection
return phpDocumentor\Descriptor\Collection

getMethods() public method

{@inheritDoc}
public getMethods ( )

getProperties() public method

{@inheritDoc}
public getProperties ( )

getUsedTraits() public method

Returned values may either be a string (when the Trait is not in this project) or a TraitDescriptor.
public getUsedTraits ( ) : phpDocumentor\Descriptor\Collection
return phpDocumentor\Descriptor\Collection

setMethods() public method

{@inheritDoc}
public setMethods ( phpDocumentor\Descriptor\Collection $methods )
$methods phpDocumentor\Descriptor\Collection

setPackage() public method

public setPackage ( string $package )
$package string

setProperties() public method

{@inheritDoc}
public setProperties ( phpDocumentor\Descriptor\Collection $properties )
$properties phpDocumentor\Descriptor\Collection

setUsedTraits() public method

Sets a collection of all traits used by this class.
public setUsedTraits ( phpDocumentor\Descriptor\Collection $usedTraits ) : void
$usedTraits phpDocumentor\Descriptor\Collection
return void

Property Details

$methods protected_oe property

protected Collection,phpDocumentor\Descriptor $methods
return phpDocumentor\Descriptor\Collection

$properties protected_oe property

protected Collection,phpDocumentor\Descriptor $properties
return phpDocumentor\Descriptor\Collection

$usedTraits protected_oe property

protected Collection,phpDocumentor\Descriptor $usedTraits
return phpDocumentor\Descriptor\Collection