1 <?php
2
3 /*
4 * This file is part of the Icybee 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 BlueTihi\Context;
13
14 class LoadedNodesEvent extends \ICanBoogie\Event
15 {
16 /**
17 * Loaded nodes.
18 *
19 * @var array
20 */
21 public $nodes;
22
23 /**
24 * The event is constructed with the type `loaded_nodes`.
25 *
26 * Warning: A node array must be provided instead of an event payload.
27 *
28 * @param \BlueTihi\Context $target
29 * @param array $nodes
30 */
31 public function __construct(\BlueTihi\Context $target, array $nodes)
32 {
33 parent::__construct($target, 'loaded_nodes', array('nodes' => $nodes));
34 }
35 }