Skip to content

Commit

Permalink
Update BaseEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Kasatkin committed Nov 17, 2016
1 parent 78d4943 commit fa39016
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/BaseEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class BaseEvent extends AbstractModel
protected $event;

/**
* @var int Order ID
* @var string Signature
*/
protected $signature;

Expand All @@ -24,6 +24,14 @@ class BaseEvent extends AbstractModel
*/
protected $data;

public function __construct(string $event, string $signature, array $data)
{
parent::__construct();
$this->event = $event;
$this->signature = $signature;
$this->data = $data;
}

public function getSignature(): string
{
return $this->signature;
Expand Down

0 comments on commit fa39016

Please sign in to comment.