for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Itkg\DelayEventBundle\Model;
/**
* Class Lock
*/
class Lock
{
* @var bool
protected $commandLocked = false;
* @var string
protected $channel = '';
protected $lockedBy;
* @return boolean
public function isCommandLocked()
return $this->commandLocked;
}
* @param boolean $commandLocked
*
* @return $this
public function setCommandLocked($commandLocked)
$this->commandLocked = $commandLocked;
if ($commandLocked) {
$this->lockedBy = php_uname('n');
} else {
$this->lockedBy = '';
return $this;
* @return string
public function getChannel()
return $this->channel;
* @param string $channel
* @return Lock
public function setChannel($channel)
$this->channel = $channel;
public function getLockedBy()
return $this->lockedBy;