-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
443 additions
and
87 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of prooph/event-store. | ||
* (c) 2014-2019 prooph software GmbH <contact@prooph.de> | ||
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Prooph\EventStore\Async; | ||
|
||
use Prooph\EventStore\EventArgs; | ||
|
||
class ClientAuthenticationFailedEventArgs implements EventArgs | ||
{ | ||
/** @var EventStoreConnection */ | ||
private $connection; | ||
/** @var string */ | ||
private $reason; | ||
|
||
public function __construct(EventStoreConnection $connection, string $reason) | ||
{ | ||
$this->connection = $connection; | ||
$this->reason = $reason; | ||
} | ||
|
||
public function connection(): EventStoreConnection | ||
{ | ||
return $this->connection; | ||
} | ||
|
||
public function reason(): string | ||
{ | ||
return $this->reason; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of prooph/event-store. | ||
* (c) 2014-2019 prooph software GmbH <contact@prooph.de> | ||
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Prooph\EventStore\Async; | ||
|
||
use Prooph\EventStore\EventArgs; | ||
|
||
class ClientClosedEventArgs implements EventArgs | ||
{ | ||
/** @var EventStoreConnection */ | ||
private $connection; | ||
/** @var string */ | ||
private $reason; | ||
|
||
public function __construct(EventStoreConnection $connection, string $reason) | ||
{ | ||
$this->connection = $connection; | ||
$this->reason = $reason; | ||
} | ||
|
||
public function connection(): EventStoreConnection | ||
{ | ||
return $this->connection; | ||
} | ||
|
||
public function reason(): string | ||
{ | ||
return $this->reason; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of prooph/event-store. | ||
* (c) 2014-2019 prooph software GmbH <contact@prooph.de> | ||
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Prooph\EventStore\Async; | ||
|
||
use Prooph\EventStore\EndPoint; | ||
use Prooph\EventStore\EventArgs; | ||
|
||
class ClientConnectionEventArgs implements EventArgs | ||
{ | ||
/** @var EventStoreConnection */ | ||
private $connection; | ||
/** @var EndPoint */ | ||
private $remoteEndPoint; | ||
|
||
public function __construct(EventStoreConnection $connection, EndPoint $remoteEndPoint) | ||
{ | ||
$this->connection = $connection; | ||
$this->remoteEndPoint = $remoteEndPoint; | ||
} | ||
|
||
public function connection(): EventStoreConnection | ||
{ | ||
return $this->connection; | ||
} | ||
|
||
public function remoteEndPoint(): EndPoint | ||
{ | ||
return $this->remoteEndPoint; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of prooph/event-store. | ||
* (c) 2014-2019 prooph software GmbH <contact@prooph.de> | ||
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Prooph\EventStore\Async; | ||
|
||
use Prooph\EventStore\EventArgs; | ||
use Throwable; | ||
|
||
class ClientErrorEventArgs implements EventArgs | ||
{ | ||
/** @var EventStoreConnection */ | ||
private $connection; | ||
/** @var Throwable */ | ||
private $exception; | ||
|
||
public function __construct(EventStoreConnection $connection, Throwable $exception) | ||
{ | ||
$this->connection = $connection; | ||
$this->exception = $exception; | ||
} | ||
|
||
public function connection(): EventStoreConnection | ||
{ | ||
return $this->connection; | ||
} | ||
|
||
public function exception(): Throwable | ||
{ | ||
return $this->exception; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of prooph/event-store. | ||
* (c) 2014-2019 prooph software GmbH <contact@prooph.de> | ||
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Prooph\EventStore\Async; | ||
|
||
use Prooph\EventStore\EventArgs; | ||
|
||
class ClientReconnectingEventArgs implements EventArgs | ||
{ | ||
/** @var EventStoreConnection */ | ||
private $connection; | ||
|
||
public function __construct(EventStoreConnection $connection) | ||
{ | ||
$this->connection = $connection; | ||
} | ||
|
||
public function connection(): EventStoreConnection | ||
{ | ||
return $this->connection; | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.