| @@ 7-73 (lines=67) @@ | ||
| 4 | ||
| 5 | use Bruli\EventBusBundle\CommandBus\CommandInterface; |
|
| 6 | ||
| 7 | class PhpMdTool implements CommandInterface |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var array |
|
| 11 | */ |
|
| 12 | private $files; |
|
| 13 | /** |
|
| 14 | * @var string |
|
| 15 | */ |
|
| 16 | private $errorMessage; |
|
| 17 | /** |
|
| 18 | * @var bool |
|
| 19 | */ |
|
| 20 | private $enableFaces; |
|
| 21 | /** |
|
| 22 | * @var string |
|
| 23 | */ |
|
| 24 | private $options; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * PhpMdToolCommand constructor. |
|
| 28 | * |
|
| 29 | * @param array $files |
|
| 30 | * @param string $options |
|
| 31 | * @param string $errorMessage |
|
| 32 | * @param bool $enableFaces |
|
| 33 | */ |
|
| 34 | public function __construct(array $files, $options, $errorMessage, $enableFaces) |
|
| 35 | { |
|
| 36 | $this->files = $files; |
|
| 37 | $this->errorMessage = $errorMessage; |
|
| 38 | $this->enableFaces = $enableFaces; |
|
| 39 | $this->options = $options; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return array |
|
| 44 | */ |
|
| 45 | public function getFiles() |
|
| 46 | { |
|
| 47 | return $this->files; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @return string |
|
| 52 | */ |
|
| 53 | public function getErrorMessage() |
|
| 54 | { |
|
| 55 | return $this->errorMessage; |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @return bool |
|
| 60 | */ |
|
| 61 | public function isEnableFaces() |
|
| 62 | { |
|
| 63 | return $this->enableFaces; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * @return string |
|
| 68 | */ |
|
| 69 | public function getOptions() |
|
| 70 | { |
|
| 71 | return $this->options; |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| @@ 7-73 (lines=67) @@ | ||
| 4 | ||
| 5 | use Bruli\EventBusBundle\CommandBus\CommandInterface; |
|
| 6 | ||
| 7 | class PhpUnitTool implements CommandInterface |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var bool |
|
| 11 | */ |
|
| 12 | private $randomMode; |
|
| 13 | /** |
|
| 14 | * @var null|string |
|
| 15 | */ |
|
| 16 | private $options; |
|
| 17 | /** |
|
| 18 | * @var string |
|
| 19 | */ |
|
| 20 | private $errorMessage; |
|
| 21 | /** |
|
| 22 | * @var bool |
|
| 23 | */ |
|
| 24 | private $enableFaces; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * PhpUnitToolCommand constructor. |
|
| 28 | * |
|
| 29 | * @param bool $randomMode |
|
| 30 | * @param string|null $options |
|
| 31 | * @param string $errorMessage |
|
| 32 | * @param bool $enableFaces |
|
| 33 | */ |
|
| 34 | public function __construct($randomMode, $options, $errorMessage, $enableFaces) |
|
| 35 | { |
|
| 36 | $this->randomMode = $randomMode; |
|
| 37 | $this->options = $options; |
|
| 38 | $this->errorMessage = $errorMessage; |
|
| 39 | $this->enableFaces = $enableFaces; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return bool |
|
| 44 | */ |
|
| 45 | public function isRandomMode() |
|
| 46 | { |
|
| 47 | return $this->randomMode; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @return null|string |
|
| 52 | */ |
|
| 53 | public function getOptions() |
|
| 54 | { |
|
| 55 | return $this->options; |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @return string |
|
| 60 | */ |
|
| 61 | public function getErrorMessage() |
|
| 62 | { |
|
| 63 | return $this->errorMessage; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * @return bool |
|
| 68 | */ |
|
| 69 | public function isEnableFaces() |
|
| 70 | { |
|
| 71 | return $this->enableFaces; |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||