mxmbsocket/lib/Ratchet/Command/Composite.php
Chris Boden 60a8a04e40 Cleanup
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
2011-11-07 11:55:07 -05:00

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();
}
}
}