Skip to content
Permalink
Browse files

Client now has a client interface because it is marked final

  • Loading branch information...
WyriHaximus committed Dec 28, 2016
1 parent 9faab8e commit e694a5d622d3c830dfa01354d6b3c98f4ff5a198
Showing with 26 additions and 1 deletion.
  1. +1 −1 src/Client.php
  2. +25 −0 src/ClientInterface.php
@@ -6,7 +6,7 @@
use Interop\Container\ContainerInterface;
use React\Promise\CancellablePromiseInterface;
final class Client
final class Client implements ClientInterface
{
/**
* @var ContainerInterface
@@ -0,0 +1,25 @@
<?php declare(strict_types=1);
namespace ApiClients\Foundation;
use Interop\Container\ContainerInterface;
use React\Promise\CancellablePromiseInterface;
interface ClientInterface
{
/**
* @return ContainerInterface
*/
public function getContainer(): ContainerInterface;
/**
* @return mixed
*/
public function getFromContainer(string $id);
/**
* @param $command
* @return CancellablePromiseInterface
*/
public function handle($command): CancellablePromiseInterface;
}

0 comments on commit e694a5d

Please sign in to comment.
You can’t perform that action at this time.