
Fixed bad interface implementation in Close Command Removed old code from Composite (now in Factory) Removed done @todo's Cleaned up Ping/Pong Added HyBi-10 frame/unframe test
17 lines
382 B
PHP
17 lines
382 B
PHP
<?php
|
|
namespace Ratchet\Command;
|
|
use Ratchet\SocketInterface;
|
|
|
|
class Composite extends \SplQueue {
|
|
public function enqueue(CommandInterface $command) {
|
|
return parent::enqueue($command);
|
|
}
|
|
|
|
public function execute() {
|
|
$this->setIteratorMode(static::IT_MODE_DELETE);
|
|
|
|
foreach ($this as $command) {
|
|
$command->execute();
|
|
}
|
|
}
|
|
} |