Class FilesParser¶
Class \Klitsche\Dog\FilesParser
- uses \Klitsche\Dog\Events\EventDispatcherAwareTrait
- uses \Klitsche\Dog\Events\ProgressEmitterTrait
- uses \Klitsche\Dog\Events\ErrorEmitterTrait
Constants¶
PROGRESS_TOPIC¶
public PROGRESS_TOPIC = 'Parse Files'
Methods¶
__construct()¶
public __construct (
?\phpDocumentor\Reflection\ProjectFactory $projectFactory = null,
?\Psr\EventDispatcher\EventDispatcherInterface $dispatcher = null
):
- Parameters
- projectFactory
?\phpDocumentor\Reflection\ProjectFactory
- dispatcher
?\Psr\EventDispatcher\EventDispatcherInterface
getEventDispatcher()¶
public getEventDispatcher ( ): \Psr\EventDispatcher\EventDispatcherInterface
- Returns
\Psr\EventDispatcher\EventDispatcherInterface
parse()¶
public parse (
array $files
): \Klitsche\Dog\ProjectInterface
- Parameters
- files
array
- Returns
\Klitsche\Dog\ProjectInterface
setEventDispatcher()¶
public setEventDispatcher (
\Psr\EventDispatcher\EventDispatcherInterface $dispatcher
): void
- Parameters
- dispatcher
\Psr\EventDispatcher\EventDispatcherInterface
Test Coverage ❤️¶
- ❤️ Lines: 42.86% (12 / 28)
- ❤️ Methods: 33.33% (1 / 3)