7123297e3da95f241954db745b4a89df496f6f6d
[yaffs-website] / web / modules / contrib / ctools / src / Event / WizardEvent.php
1 <?php
2
3 namespace Drupal\ctools\Event;
4
5 use Drupal\ctools\Wizard\FormWizardInterface;
6 use Symfony\Component\EventDispatcher\Event;
7
8 /**
9  * An event for altering form wizard values.
10  */
11 class WizardEvent extends Event {
12
13   /**
14    * @var \Drupal\ctools\Wizard\FormWizardInterface
15    */
16   protected $wizard;
17
18   /**
19    * @var mixed
20    */
21   protected $values;
22
23   function __construct(FormWizardInterface $wizard, $values) {
24     $this->wizard = $wizard;
25     $this->values = $values;
26   }
27
28   public function getWizard() {
29     return $this->wizard;
30   }
31
32   public function getValues() {
33     return $this->values;
34   }
35
36   public function setValues($values) {
37     $this->values = $values;
38     return $this;
39   }
40
41 }