/**
  * Constructor
  *
  * @param MiniGameId $gameId
  * @param PlayerId   $playerId
  * @param string     $message
  */
 public function __construct(MiniGameId $gameId, PlayerId $playerId, $message)
 {
     parent::__construct(static::NAME);
     $this->gameId = $gameId;
     $this->playerId = $playerId;
     $this->message = $message;
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * @param ApplicationUserId $id
  * @param string            $username
  * @param string            $preferredLanguage
  */
 public function __construct(ApplicationUserId $id, $username, $preferredLanguage)
 {
     parent::__construct(self::NAME);
     $this->userId = $id;
     $this->username = $username;
     $this->preferredLanguage = $preferredLanguage;
 }
 /**
  * Constructor
  *
  * @param ApplicationUserId        $userId
  * @param UndefinedApplicationUser $user
  */
 public function __construct(ApplicationUserId $userId, UndefinedApplicationUser $user)
 {
     parent::__construct(self::NAME);
     $this->userId = $userId;
     $this->user = $user;
 }
Exemplo n.º 4
0
 /**
  * TestEvent constructor.
  */
 public function __construct()
 {
     parent::__construct('test');
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct('foo.event');
 }
 /**
  * Sets the event name
  */
 public function __construct()
 {
     parent::__construct(Events::TAKE_PAYMENT_SUCCESS);
 }
Exemplo n.º 7
0
 public function __construct()
 {
     parent::__construct(Engine::APP_EXECUTE_EVENT);
 }
Exemplo n.º 8
0
 public function __construct($name)
 {
     parent::__construct($name);
     $this->parameters = new \hass\base\classes\Parameters();
 }
Exemplo n.º 9
0
 public function __construct()
 {
     parent::__construct(Engine::APP_CLEANUP_EVENT);
 }
Exemplo n.º 10
0
 /**
  * SerializableEvent constructor.
  *
  * @param string $name
  * @param array $payload
  */
 public function __construct($name, array $payload = [])
 {
     parent::__construct($name);
     $this->payload = $payload;
 }
Exemplo n.º 11
0
 public function __construct(ServerRequestInterface $request, string $name)
 {
     parent::__construct($name);
 }
Exemplo n.º 12
0
 /**
  * RequestEvent constructor.
  *
  * @param string                 $name
  * @param ServerRequestInterface $request
  */
 public function __construct($name, ServerRequestInterface $request)
 {
     parent::__construct($name);
     $this->request = $request;
 }
Exemplo n.º 13
0
 /**
  * @param string $eventName
  * @param array $params
  */
 public function __construct($eventName, array $params = array())
 {
     parent::__construct($eventName);
     $this->params = $params;
 }
Exemplo n.º 14
0
 /**
  * Constructor
  *
  * @param string     $name
  * @param MiniGameId $gameId
  * @param PlayerId   $playerId
  */
 public function __construct($name, MiniGameId $gameId, PlayerId $playerId = null)
 {
     parent::__construct($name);
     $this->gameId = $gameId;
     $this->playerId = $playerId;
 }
Exemplo n.º 15
0
 public function __construct()
 {
     parent::__construct(get_called_class());
 }
Exemplo n.º 16
0
 /**
  * @param Environment $environment
  */
 public function __construct()
 {
     parent::__construct(Engine::ENGINE_BOOTUP_EVENT);
 }
Exemplo n.º 17
0
 /**
  * @param Session $session
  * @param string $name
  */
 public function __construct(Session $session, $name = null)
 {
     parent::__construct($name);
     $this->session = $session;
 }
 /**
  * Sets the event name
  */
 public function __construct()
 {
     parent::__construct(Events::TAKE_PAYMENT_FAILURE);
 }
 /**
  * ThirdPartyAccountLinkedEvent constructor.
  *
  * @param ApplicationUserId $userId
  * @param Account           $thirdPartyAccount
  */
 public function __construct(ApplicationUserId $userId, Account $thirdPartyAccount)
 {
     parent::__construct(self::NAME);
     $this->userId = $userId;
     $this->thirdPartyAccount = $thirdPartyAccount;
 }
Exemplo n.º 20
0
 /**
  * @param Exception $exception
  */
 public function __construct(Exception $exception)
 {
     parent::__construct(Engine::EXCEPTION_THROWN_EVENT);
     $this->exception = $exception;
 }