Last active
February 14, 2018 08:31
-
-
Save jverdeyen/67b3e84a9648e589556f64c325b1825e to your computer and use it in GitHub Desktop.
Enqueue Symfony Console commands [QueuedCommand.php]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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