1 <?php
2
3 /*
4 * This file is part of the Brickrouge package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Brickrouge;
13
14 /**
15 * Event class for the event `alter_css_class_names`.
16 */
17 class AlterCSSClassNamesEvent extends \ICanBoogie\Event
18 {
19 /**
20 * Reference to the class names to alter.
21 *
22 * @var array[string]mixed
23 */
24 public $names;
25
26 /**
27 * The event is constructed with the type `alter_css_class_names`.
28 *
29 * @param $target
30 * @param array $names Reference to the CSS class names.
31 */
32 public function __construct($target, array &$names)
33 {
34 $this->names = &$names;
35
36 parent::__construct($target, 'alter_css_class_names');
37 }
38 }