| @@ 7-45 (lines=39) @@ | ||
| 4 | ||
| 5 | use Bruli\EventBusBundle\CommandBus\CommandInterface; |
|
| 6 | ||
| 7 | class ComposerTool implements CommandInterface |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var array |
|
| 11 | */ |
|
| 12 | private $files; |
|
| 13 | /** |
|
| 14 | * @var string |
|
| 15 | */ |
|
| 16 | private $errorMessage; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * ComposerToolCommand constructor. |
|
| 20 | * |
|
| 21 | * @param array $files |
|
| 22 | * @param string $errorMessage |
|
| 23 | */ |
|
| 24 | public function __construct(array $files, $errorMessage) |
|
| 25 | { |
|
| 26 | $this->files = $files; |
|
| 27 | $this->errorMessage = $errorMessage; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @return string |
|
| 32 | */ |
|
| 33 | public function getErrorMessage() |
|
| 34 | { |
|
| 35 | return $this->errorMessage; |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @return array |
|
| 40 | */ |
|
| 41 | public function getFiles() |
|
| 42 | { |
|
| 43 | return $this->files; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 7-45 (lines=39) @@ | ||
| 4 | ||
| 5 | use Bruli\EventBusBundle\CommandBus\CommandInterface; |
|
| 6 | ||
| 7 | class JsonLintTool implements CommandInterface |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var array |
|
| 11 | */ |
|
| 12 | private $files; |
|
| 13 | /** |
|
| 14 | * @var string |
|
| 15 | */ |
|
| 16 | private $errorMessage; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * JsonLintToolCommand constructor. |
|
| 20 | * |
|
| 21 | * @param array $files |
|
| 22 | * @param string $errorMessage |
|
| 23 | */ |
|
| 24 | public function __construct(array $files, $errorMessage) |
|
| 25 | { |
|
| 26 | $this->files = $files; |
|
| 27 | $this->errorMessage = $errorMessage; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @return string |
|
| 32 | */ |
|
| 33 | public function getErrorMessage() |
|
| 34 | { |
|
| 35 | return $this->errorMessage; |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @return array |
|
| 40 | */ |
|
| 41 | public function getFiles() |
|
| 42 | { |
|
| 43 | return $this->files; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 7-45 (lines=39) @@ | ||
| 4 | ||
| 5 | use Bruli\EventBusBundle\CommandBus\CommandInterface; |
|
| 6 | ||
| 7 | class PhpLintTool implements CommandInterface |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var array |
|
| 11 | */ |
|
| 12 | private $files; |
|
| 13 | /** |
|
| 14 | * @var string |
|
| 15 | */ |
|
| 16 | private $errorMessage; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * PhpLintToolCommand constructor. |
|
| 20 | * |
|
| 21 | * @param array $files |
|
| 22 | * @param string $errorMessage |
|
| 23 | */ |
|
| 24 | public function __construct(array $files, $errorMessage) |
|
| 25 | { |
|
| 26 | $this->files = $files; |
|
| 27 | $this->errorMessage = $errorMessage; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @return array |
|
| 32 | */ |
|
| 33 | public function getFiles() |
|
| 34 | { |
|
| 35 | return $this->files; |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @return string |
|
| 40 | */ |
|
| 41 | public function getErrorMessage() |
|
| 42 | { |
|
| 43 | return $this->errorMessage; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||