- BC Break: _PHP_ namespaces changed (PSR-4 standard). The _root_ namespace for all _PF_ related scripts is Exodus4D\Pathfinder
- BC Break: Project folder structure changed. Removed `app/main` dir. - BC Break: Core _PHP_ framework + dependencies moved into `composer.json` and are no longer part of this repo
This commit is contained in:
30
app/Lib/Socket/SocketInterface.php
Normal file
30
app/Lib/Socket/SocketInterface.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Exodus 4D
|
||||
* Date: 16.02.2019
|
||||
* Time: 11:26
|
||||
*/
|
||||
|
||||
namespace Exodus4D\Pathfinder\Lib\Socket;
|
||||
|
||||
|
||||
use React\Promise;
|
||||
|
||||
interface SocketInterface {
|
||||
|
||||
/**
|
||||
* @param string $action
|
||||
* @param null $data
|
||||
* @return Promise\PromiseInterface
|
||||
*/
|
||||
public function write(string $action, $data = null) : Promise\PromiseInterface;
|
||||
|
||||
/**
|
||||
* @param string $class
|
||||
* @param string $uri
|
||||
* @param array $options
|
||||
* @return SocketInterface
|
||||
*/
|
||||
public static function factory(string $class, string $uri, array $options = []) : SocketInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user