From 00b9b3a74bc766fb30eb140863ea130c4e0095a8 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sun, 4 Oct 2020 18:15:22 +0200 Subject: [PATCH] Add Message interfaces for messages --- composer.lock | 12 ++++++------ src/Message/Call.php | 2 +- src/Message/Destruct.php | 2 +- src/Message/Existence.php | 2 +- src/Message/Link.php | 2 +- src/Message/Message.php | 12 ++++++++++++ src/Message/Notify.php | 2 +- 7 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 src/Message/Message.php diff --git a/composer.lock b/composer.lock index 2e962dd..02f1d4b 100644 --- a/composer.lock +++ b/composer.lock @@ -4900,16 +4900,16 @@ }, { "name": "php-coveralls/php-coveralls", - "version": "v2.4.2", + "version": "v2.4.3", "source": { "type": "git", "url": "https://github.com/php-coveralls/php-coveralls.git", - "reference": "8a33ae229da63a0bd22dadae1512af663ce5e559" + "reference": "909381bd40a17ae6e9076051f0d73293c1c091af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/8a33ae229da63a0bd22dadae1512af663ce5e559", - "reference": "8a33ae229da63a0bd22dadae1512af663ce5e559", + "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/909381bd40a17ae6e9076051f0d73293c1c091af", + "reference": "909381bd40a17ae6e9076051f0d73293c1c091af", "shasum": "" }, "require": { @@ -4977,9 +4977,9 @@ ], "support": { "issues": "https://github.com/php-coveralls/php-coveralls/issues", - "source": "https://github.com/php-coveralls/php-coveralls/tree/v2.4.2" + "source": "https://github.com/php-coveralls/php-coveralls/tree/v2.4.3" }, - "time": "2020-10-23T16:34:35+00:00" + "time": "2020-12-24T09:17:03+00:00" }, { "name": "php-parallel-lint/php-console-color", diff --git a/src/Message/Call.php b/src/Message/Call.php index e92228a..b04e2c3 100644 --- a/src/Message/Call.php +++ b/src/Message/Call.php @@ -6,7 +6,7 @@ use parallel\Channel; -final class Call +final class Call implements Message { private Channel $channel; diff --git a/src/Message/Destruct.php b/src/Message/Destruct.php index 06d4654..53e914f 100644 --- a/src/Message/Destruct.php +++ b/src/Message/Destruct.php @@ -4,7 +4,7 @@ namespace ReactParallel\ObjectProxy\Message; -final class Destruct +final class Destruct implements Message { private string $hash; private string $objectHash; diff --git a/src/Message/Existence.php b/src/Message/Existence.php index f23de79..643f34c 100644 --- a/src/Message/Existence.php +++ b/src/Message/Existence.php @@ -4,7 +4,7 @@ namespace ReactParallel\ObjectProxy\Message; -final class Existence +final class Existence implements Message { private string $hash; private string $objectHash; diff --git a/src/Message/Link.php b/src/Message/Link.php index 9d544b9..47b1d16 100644 --- a/src/Message/Link.php +++ b/src/Message/Link.php @@ -4,7 +4,7 @@ namespace ReactParallel\ObjectProxy\Message; -final class Link +final class Link implements Message { private string $hash; private string $objectHash; diff --git a/src/Message/Message.php b/src/Message/Message.php new file mode 100644 index 0000000..058e2ac --- /dev/null +++ b/src/Message/Message.php @@ -0,0 +1,12 @@ +