
Separated Observable interface from Decorator interface, also separated config method to its own interface Cleaned up unit tests to reflect interface changes
22 lines
543 B
PHP
22 lines
543 B
PHP
<?php
|
|
namespace Ratchet\Tests\Mock;
|
|
use Ratchet\Application\ApplicationInterface;
|
|
use Ratchet\Tests\Mock\Socket as MockSocket;
|
|
use Ratchet\SocketInterface;
|
|
|
|
class Application implements ApplicationInterface {
|
|
public function __construct(ApplicationInterface $app = null) {
|
|
}
|
|
|
|
public function onOpen(SocketInterface $conn) {
|
|
}
|
|
|
|
public function onRecv(SocketInterface $from, $msg) {
|
|
}
|
|
|
|
public function onClose(SocketInterface $conn) {
|
|
}
|
|
|
|
public function onError(SocketInterface $conn, \Exception $e) {
|
|
}
|
|
} |