| @@ 24-60 (lines=37) @@ | ||
| 21 | * |
|
| 22 | * @property EngineCollection $instance |
|
| 23 | */ |
|
| 24 | class AlterEvent extends Event |
|
| 25 | { |
|
| 26 | /** |
|
| 27 | * Reference to the target instance. |
|
| 28 | * |
|
| 29 | * @var EngineCollection |
|
| 30 | */ |
|
| 31 | private $instance; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @return EngineCollection |
|
| 35 | */ |
|
| 36 | protected function get_instance() |
|
| 37 | { |
|
| 38 | return $this->instance; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @param EngineCollection $engines |
|
| 43 | */ |
|
| 44 | protected function set_instance(EngineCollection $engines) |
|
| 45 | { |
|
| 46 | $this->instance = $engines; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * Initializes the {@link $instance} property. |
|
| 51 | * |
|
| 52 | * @param EngineCollection $target |
|
| 53 | */ |
|
| 54 | public function __construct(EngineCollection &$target) |
|
| 55 | { |
|
| 56 | $this->instance = &$target; |
|
| 57 | ||
| 58 | parent::__construct($target, 'alter'); |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||
| @@ 24-60 (lines=37) @@ | ||
| 21 | * |
|
| 22 | * @property Renderer $instance |
|
| 23 | */ |
|
| 24 | class AlterEvent extends Event |
|
| 25 | { |
|
| 26 | /** |
|
| 27 | * Reference to the target instance. |
|
| 28 | * |
|
| 29 | * @var Renderer |
|
| 30 | */ |
|
| 31 | private $instance; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @return Renderer |
|
| 35 | */ |
|
| 36 | protected function get_instance() |
|
| 37 | { |
|
| 38 | return $this->instance; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @param Renderer $renderer |
|
| 43 | */ |
|
| 44 | protected function set_instance(Renderer $renderer) |
|
| 45 | { |
|
| 46 | $this->instance = $renderer; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * Initializes the {@link $instance} property. |
|
| 51 | * |
|
| 52 | * @param Renderer $target |
|
| 53 | */ |
|
| 54 | public function __construct(Renderer &$target) |
|
| 55 | { |
|
| 56 | $this->instance = &$target; |
|
| 57 | ||
| 58 | parent::__construct($target, 'alter'); |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||
| @@ 24-60 (lines=37) @@ | ||
| 21 | * |
|
| 22 | * @property TemplateResolver $instance |
|
| 23 | */ |
|
| 24 | class AlterEvent extends Event |
|
| 25 | { |
|
| 26 | /** |
|
| 27 | * Reference to the target instance. |
|
| 28 | * |
|
| 29 | * @var TemplateResolver |
|
| 30 | */ |
|
| 31 | private $instance; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @return TemplateResolver |
|
| 35 | */ |
|
| 36 | protected function get_instance() |
|
| 37 | { |
|
| 38 | return $this->instance; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @param TemplateResolver $template_resolver |
|
| 43 | */ |
|
| 44 | protected function set_instance(TemplateResolver $template_resolver) |
|
| 45 | { |
|
| 46 | $this->instance = $template_resolver; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * Initializes the {@link $instance} property. |
|
| 51 | * |
|
| 52 | * @param TemplateResolver $target |
|
| 53 | */ |
|
| 54 | public function __construct(TemplateResolver &$target) |
|
| 55 | { |
|
| 56 | $this->instance = &$target; |
|
| 57 | ||
| 58 | parent::__construct($target, 'alter'); |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||