Skip to content

Instantly share code, notes, and snippets.

@ahmed-bhs
Last active September 8, 2018 11:48
Show Gist options
  • Save ahmed-bhs/1d010646eb1aaf9e2eb4d392cecb1d27 to your computer and use it in GitHub Desktop.
Save ahmed-bhs/1d010646eb1aaf9e2eb4d392cecb1d27 to your computer and use it in GitHub Desktop.
<?php
namespace Acme\Store\Event;
use Symfony\Component\EventDispatcher\Event;
use Acme\Store\Order;
/**
* The order.placed event is dispatched each time an order is created
* in the system.
*/
class OrderPlacedEvent extends Event
{
const NAME = 'order.placed';
const MOHAMED = '5ra';
public function getMohamed()
{
return $this->self::MOHAMED;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment