Last active
September 8, 2018 11:48
-
-
Save ahmed-bhs/1d010646eb1aaf9e2eb4d392cecb1d27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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