Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ClientInterface #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added ClientInterface
  • Loading branch information
Alexander Cherednikov committed Nov 20, 2024
commit 08a2ba9d8bfbda45cb3232dbbb04fe85d36b082a
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v6.0.2

* An extension point has been added for flexibility

# v6.0.0

Since phpcent v6.0.0 we do not maintain CHANGELOG.md file.
Expand Down
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @copyright Copyright (c) 2019 Centrifugal
* @license The MIT License (MIT)
*/
class Client
class Client implements ClientInterface
{
private $url;
private $apikey;
Expand Down Expand Up @@ -273,7 +273,7 @@ public function historyRemove($channel)

/**
* Get all active channels.
*
*
* @param string $pattern (optional)
* @return mixed
*/
Expand Down
14 changes: 14 additions & 0 deletions src/ClientInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace phpcent;

/**
* Centrifugo API Client
*
* @package phpcent
* @copyright Copyright (c) 2019 Centrifugal
* @license The MIT License (MIT)
*/
interface ClientInterface
{
}