\phpDocumentor\Descriptor\TraitsBelongsToClassTraitOrInterface

Summary

Methods
Properties
Constants
setParent()
getParent()
No public properties found
No constants found
No protected methods found
$parent
N/A
No private methods found
No private properties found
N/A

Properties

$parent

$parent : \phpDocumentor\Descriptor\Interfaces\ClassInterface|\phpDocumentor\Descriptor\Interfaces\InterfaceInterface|\phpDocumentor\Descriptor\Interfaces\TraitInterface|null

Type

\phpDocumentor\Descriptor\Interfaces\ClassInterface|\phpDocumentor\Descriptor\Interfaces\InterfaceInterface|\phpDocumentor\Descriptor\Interfaces\TraitInterface|null —

Methods

setParent()

setParent(mixed  $parent) : void

Registers a parent class, interface or trait.

Parameters

mixed $parent

Throws

\InvalidArgumentException

If anything other than a class, interface or trait was passed.

getParent()

getParent() : \phpDocumentor\Descriptor\Interfaces\ClassInterface|\phpDocumentor\Descriptor\Interfaces\InterfaceInterface|\phpDocumentor\Descriptor\Interfaces\TraitInterface|null

Returns

\phpDocumentor\Descriptor\Interfaces\ClassInterface|\phpDocumentor\Descriptor\Interfaces\InterfaceInterface|\phpDocumentor\Descriptor\Interfaces\TraitInterface|null —