-
Notifications
You must be signed in to change notification settings - Fork 137
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
18 changed files
with
350 additions
and
749 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
default: | ||
autoload: | ||
- "%paths.base%/tests/features/bootstrap/" | ||
suites: | ||
access: | ||
paths: [ "%paths.base%/tests/features/bootstrap/access" ] | ||
contexts: [ AccessManagerContext ] | ||
utilities: | ||
paths: [ "%paths.base%/tests/features/bootstrap/utilities" ] | ||
contexts: [ TimeContext ] | ||
autoload: | ||
'': "%paths.base%/tests/Acceptance/" | ||
|
||
suites: | ||
custom-message-type: | ||
paths: | ||
- "%paths.base%/tests/Acceptance/CustomMessageType" | ||
contexts: | ||
- PubNubTests\Acceptance\CustomMessageType\CustomMessageTypeContext |
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ class History extends Endpoint | |
/** @var bool */ | ||
protected ?bool $includeTimetoken; | ||
|
||
protected ?bool $includeCustomMessageType; | ||
|
||
/** | ||
* @param string $channel | ||
* @return $this | ||
|
@@ -97,6 +99,17 @@ public function includeTimetoken($includeTimetoken) | |
return $this; | ||
} | ||
|
||
/** | ||
* @param bool $includeTimetoken | ||
* @return $this | ||
*/ | ||
public function includeCustomMessageType($includeCustomMessageType) | ||
Check failure on line 106 in src/PubNub/Endpoints/History.php GitHub Actions / Lint project
Check failure on line 106 in src/PubNub/Endpoints/History.php GitHub Actions / Lint project
|
||
{ | ||
$this->includeCustomMessageType = $includeCustomMessageType; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @throws PubNubValidationException | ||
*/ | ||
|
@@ -138,6 +151,14 @@ protected function customParams() | |
$this->includeTimetoken ? $params['include_token'] = "true" : $params['include_token'] = "false"; | ||
} | ||
|
||
if (isset($this->includeCustomMessageType)) { | ||
if ($this->includeCustomMessageType) { | ||
$params['include_custom_message_type'] = "true"; | ||
} else { | ||
$params['include_custom_message_type'] = "false"; | ||
} | ||
} | ||
|
||
return $params; | ||
} | ||
|
||
|
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.