Class Class_¶
Class \Klitsche\Dog\Elements\Class_
- implements \Klitsche\Dog\Elements\ElementInterface
- implements \Klitsche\Dog\Elements\FqsenAwareInterface
- implements \Klitsche\Dog\Elements\DocBlockAwareInterface
- implements \Klitsche\Dog\Elements\ProjectAwareInterface
- implements \Klitsche\Dog\Enrichers\DataAwareInterface
- uses \Klitsche\Dog\Elements\DocBlockTrait
- uses \Klitsche\Dog\Elements\ProjectTrait
- uses \Klitsche\Dog\Elements\FqsenTrait
- uses \Klitsche\Dog\Enrichers\DataTrait
Constants¶
TYPE¶
public TYPE = 'Class'
Methods¶
__construct()¶
public __construct (
\Klitsche\Dog\ProjectInterface $project,
\Klitsche\Dog\Elements\ElementInterface $owner,
\phpDocumentor\Reflection\Php\Class_ $php
):
- Parameters
- project
\Klitsche\Dog\ProjectInterface
- owner
\Klitsche\Dog\Elements\ElementInterface
- php
\phpDocumentor\Reflection\Php\Class_
getAllMethods()¶
public getAllMethods ( ): \Klitsche\Dog\Elements\Method[]
- Returns
\Klitsche\Dog\Elements\Method[]
getConstants()¶
public getConstants ( ): \Klitsche\Dog\Elements\Constant[]
- Returns
\Klitsche\Dog\Elements\Constant[]
getData()¶
public getData (
string $id
): mixed
- Parameters
- id
string
- Returns
mixed
Null if data is not set
getDocBlock()¶
public getDocBlock ( ): ?\phpDocumentor\Reflection\DocBlock
- Returns
?\phpDocumentor\Reflection\DocBlock
getElementType()¶
public getElementType ( ): string
- Returns
string
getFile()¶
public getFile ( ): \Klitsche\Dog\Elements\File
- Returns
\Klitsche\Dog\Elements\File
getFqsen()¶
public getFqsen ( ): \phpDocumentor\Reflection\Fqsen
- Returns
\phpDocumentor\Reflection\Fqsen
getId()¶
public getId ( ): string
- Returns
string
getInterfaces()¶
public getInterfaces ( ): \phpDocumentor\Reflection\Fqsen[]
- Returns
\phpDocumentor\Reflection\Fqsen[]
getLocation()¶
public getLocation ( ): \phpDocumentor\Reflection\Location
- Returns
\phpDocumentor\Reflection\Location
getMethods()¶
public getMethods ( ): \Klitsche\Dog\Elements\Method[]
- Returns
\Klitsche\Dog\Elements\Method[]
getName()¶
public getName ( ): string
- Returns
string
getNamespace()¶
public getNamespace ( ): \phpDocumentor\Reflection\Fqsen
- Returns
\phpDocumentor\Reflection\Fqsen
getOwner()¶
public getOwner ( ): ?\Klitsche\Dog\Elements\ElementInterface
getParent()¶
public getParent ( ): ?\phpDocumentor\Reflection\Fqsen
- Returns
?\phpDocumentor\Reflection\Fqsen
getPhp()¶
public getPhp ( ): \phpDocumentor\Reflection\Php\Class_
- Returns
\phpDocumentor\Reflection\Php\Class_
getProject()¶
public getProject ( ): \Klitsche\Dog\ProjectInterface
- Returns
\Klitsche\Dog\ProjectInterface
getProperties()¶
public getProperties ( ): \Klitsche\Dog\Elements\Property[]
- Returns
\Klitsche\Dog\Elements\Property[]
getUsedTraits()¶
public getUsedTraits ( ): \phpDocumentor\Reflection\Fqsen[]
- Returns
\phpDocumentor\Reflection\Fqsen[]
hasDocBlock()¶
public hasDocBlock ( ): bool
- Returns
bool
hasTag()¶
public hasTag (
string $name
): bool
- Parameters
- name
string
- Returns
bool
isAbstract()¶
public isAbstract ( ): bool
- Returns
bool
isFinal()¶
public isFinal ( ): bool
- Returns
bool
isInternal()¶
public isInternal ( ): bool
- Returns
bool
setData()¶
public setData (
string $id,
mixed $value
): void
- Parameters
- id
string
- value
mixed
setProject()¶
public setProject (
\Klitsche\Dog\ProjectInterface $project
): void
- Parameters
- project
\Klitsche\Dog\ProjectInterface
Test Coverage 💛¶
- 💛 Lines: 85.51% (59 / 69)
- 💛 Methods: 77.27% (17 / 22)