commerce-8.x-2.8/modules/store/src/Event/StoreEvent.php
modules/store/src/Event/StoreEvent.php
<?php
namespace Drupal\commerce_store\Event;
use Drupal\commerce_store\Entity\StoreInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Defines the store event.
*
* @see \Drupal\commerce_store\Event\StoreEvents
*/
class StoreEvent extends Event {
/**
* The store.
*
* @var \Drupal\commerce_store\Entity\StoreInterface
*/
protected $store;
/**
* Constructs a new StoreEvent.
*
* @param \Drupal\commerce_store\Entity\StoreInterface $store
* The store.
*/
public function __construct(StoreInterface $store) {
$this->store = $store;
}
/**
* Gets the store.
*
* @return \Drupal\commerce_store\Entity\StoreInterface
* The store.
*/
public function getStore() {
return $this->store;
}
}
