Class Project¶
Class \Klitsche\Dog\Project
- implements \Klitsche\Dog\ProjectInterface
- implements \Klitsche\Dog\Enrichers\DataAwareInterface
- uses \Klitsche\Dog\Enrichers\DataTrait
Methods¶
__construct()¶
public __construct ( ):
addFile()¶
public addFile (
\Klitsche\Dog\Elements\File $file
): void
- Parameters
- file
\Klitsche\Dog\Elements\File
getByFqsen()¶
public getByFqsen (
\phpDocumentor\Reflection\Fqsen $fqsen
): ?\Klitsche\Dog\Elements\ElementInterface
- Parameters
- fqsen
\phpDocumentor\Reflection\Fqsen
- Returns
?\Klitsche\Dog\Elements\ElementInterface
getClasses()¶
public getClasses ( ): \Klitsche\Dog\Elements\Class_[]
- Returns
\Klitsche\Dog\Elements\Class_[]
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
getElements()¶
public getElements ( ): array
- Returns
array
getFiles()¶
public getFiles ( ): \Klitsche\Dog\Elements\File[]
- Returns
\Klitsche\Dog\Elements\File[]
getFunctions()¶
public getFunctions ( ): \Klitsche\Dog\Elements\Function_[]
- Returns
\Klitsche\Dog\Elements\Function_[]
getIndex()¶
public getIndex ( ): \Klitsche\Dog\Elements\ElementsIndex
getInterfaces()¶
public getInterfaces ( ): \Klitsche\Dog\Elements\Interface_[]
- Returns
\Klitsche\Dog\Elements\Interface_[]
getNamespaces()¶
public getNamespaces ( ): \phpDocumentor\Reflection\Fqsen[]
- Returns
\phpDocumentor\Reflection\Fqsen[]
getTraits()¶
public getTraits ( ): \Klitsche\Dog\Elements\Trait_[]
- Returns
\Klitsche\Dog\Elements\Trait_[]
setData()¶
public setData (
string $id,
mixed $value
): void
- Parameters
- id
string
- value
mixed
Test Coverage 💛¶
- 💛 Lines: 86.67% (13 / 15)
- 💛 Methods: 83.33% (10 / 12)