Skip to content

Latest commit

 

History

History
213 lines (138 loc) · 5.9 KB

File metadata and controls

213 lines (138 loc) · 5.9 KB

BumbleDocGen / Technical description of the project / Plugin system / OnAddClassEntityToCollection


namespace BumbleDocGen\LanguageHandler\Php\Plugin\Event\Parser;

final class OnAddClassEntityToCollection extends \Symfony\Contracts\EventDispatcher\Event implements \BumbleDocGen\Core\Plugin\OnlySingleExecutionEvent
Called when each class entity is added to the entity collection

Initialization methods:

  1. __construct

Methods:

  1. getClassEntityCollection
  2. getRootEntity
  3. getUniqueExecutionId
  4. isPropagationStopped - Is propagation stopped?
  5. stopPropagation - Stops the propagation of the event to further event listeners.

Method details:

public function __construct(\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity $classEntity, \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntityCollection $classEntityCollection);

Parameters:

Name Type Description
$classEntity \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity -
$classEntityCollection \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntityCollection -

public function getClassEntityCollection(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntityCollection;

Parameters: not specified

Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntityCollection


public function getRootEntity(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity;

Parameters: not specified

Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity


public function getUniqueExecutionId(): string;

Parameters: not specified

Return value: string


// Implemented in Symfony\Contracts\EventDispatcher\Event

public function isPropagationStopped(): bool;
Is propagation stopped?

Parameters: not specified

Return value: bool


// Implemented in Symfony\Contracts\EventDispatcher\Event

public function stopPropagation(): void;
Stops the propagation of the event to further event listeners.

Parameters: not specified

Return value: void