for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SymfonyBundles\QueueBundle\Service;
class Queue implements QueueInterface
{
/**
* @var string
*/
private $name;
* @var Storage\StorageInterface
private $storage;
* {@inheritdoc}
public function setName($name)
$this->name = $name;
}
public function getName()
return $this->name;
public function setStorage(Storage\StorageInterface $storage)
$this->storage = $storage;
public function pop()
return $this->storage->first($this->name);
public function push($value)
$this->storage->append($this->name, $value);
public function count()
return $this->storage->count($this->name);