Made changes as suggested in pull request. Getters have been removed from IoServer and desired properties have been made public.

This commit is contained in:
Gerrit Drost 2014-06-04 16:59:30 +02:00
parent 478bdc10c5
commit 77c6d53a4d
2 changed files with 3 additions and 21 deletions

View File

@ -96,7 +96,7 @@ class App {
* @return FlashPolicy * @return FlashPolicy
*/ */
public function getFlashPolicy() { public function getFlashPolicy() {
return $this->flashServer->getApp(); return $this->flashServer->app;
} }
/** /**
@ -105,7 +105,7 @@ class App {
* @return \React\Socket\ServerInterface * @return \React\Socket\ServerInterface
*/ */
public function getFlashSocket() { public function getFlashSocket() {
return $this->flashServer->getSocket(); return $this->flashServer->socket;
} }
/** /**

View File

@ -33,7 +33,7 @@ class IoServer {
* The socket server the Ratchet Application is run off of * The socket server the Ratchet Application is run off of
* @var \React\Socket\ServerInterface * @var \React\Socket\ServerInterface
*/ */
protected $socket; public $socket;
/** /**
* @param \Ratchet\MessageComponentInterface $app The Ratchet application stack to host * @param \Ratchet\MessageComponentInterface $app The Ratchet application stack to host
@ -59,24 +59,6 @@ class IoServer {
$this->handlers[1] = array($this, 'handleEnd'); $this->handlers[1] = array($this, 'handleEnd');
$this->handlers[2] = array($this, 'handleError'); $this->handlers[2] = array($this, 'handleError');
} }
/**
* Returns the Ratchet App
*
* @return \Ratchet\MessageComponentInterface
*/
public function getApp() {
return $this->app;
}
/**
* Returns the Socket
*
* @return \React\Socket\ServerInterface
*/
public function getSocket() {
return $this->socket;
}
/** /**
* @param \Ratchet\MessageComponentInterface $component The application that I/O will call when events are received * @param \Ratchet\MessageComponentInterface $component The application that I/O will call when events are received