Skip to content

Instantly share code, notes, and snippets.

@jverdeyen
Last active February 14, 2018 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jverdeyen/67b3e84a9648e589556f64c325b1825e to your computer and use it in GitHub Desktop.
Save jverdeyen/67b3e84a9648e589556f64c325b1825e to your computer and use it in GitHub Desktop.
Enqueue Symfony Console commands [QueuedCommand.php]
<?php
namespace AppBundle\Model\Queue;
class QueuedCommand
{
/**
* @var string
*/
private $name;
/**
* @var array
*/
private $parameters;
public function __construct(string $name, array $parameters)
{
$this->name = $name;
$this->parameters = $parameters;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @return array
*/
public function getParameters(): array
{
return $this->parameters;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment