for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Phive Queue package.
*
* (c) Eugene Leonovich <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Phive\Queue\Tests\Handler;
use Phive\Queue\SysVQueue;
class SysVHandler extends Handler
{
public function createQueue()
return new SysVQueue($this->getOption('key'));
}
public function clear()
msg_remove_queue(msg_get_queue($this->getOption('key')));
public function getMeta()
return msg_stat_queue(msg_get_queue($this->getOption('key')));