for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Equip\Queue;
use Equip\Command\OptionsInterface;
use Equip\Command\OptionsSerializerTrait;
use Equip\Queue\Exception\MessageException;
abstract class AbstractOptions implements OptionsInterface
{
use OptionsSerializerTrait;
/**
* @var string
*/
protected $command;
protected $queue;
* Returns the command name
*
* @return string
* @throws MessageException If the handler property isn't set
public function command()
if (!$this->command) {
throw MessageException::missingProperty('command');
}
return $this->command;
* Returns the queue name
* @throws MessageException If the queue property isn't set
public function queue()
if (!$this->queue) {
throw MessageException::missingProperty('queue');
return $this->queue;