| 1 | <?php | ||
| 11 | class GenericCommand implements CommandInterface | ||
| 12 | { | ||
| 13 | /** @var CommandLineCreatorInterface */ | ||
| 14 | protected $commandLineCreator; | ||
| 15 | |||
| 16 | /** @var ResponseParserInterface */ | ||
| 17 | protected $responseParser; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * @param CommandLineCreatorInterface $commandLineCreator | ||
| 21 | * @param ResponseParserInterface $responseParser | ||
| 22 | */ | ||
| 23 | 50 | public function __construct(CommandLineCreatorInterface $commandLineCreator, ResponseParserInterface $responseParser) | |
| 28 | |||
| 29 | /** | ||
| 30 | * @inheritDoc | ||
| 31 | */ | ||
| 32 | 35 | public function getCommandLine() | |
| 36 | |||
| 37 | /** | ||
| 38 | * @inheritDoc | ||
| 39 | */ | ||
| 40 | 6 | public function hasData() | |
| 44 | |||
| 45 | /** | ||
| 46 | * @inheritDoc | ||
| 47 | */ | ||
| 48 | 6 | public function getData() | |
| 52 | |||
| 53 | /** | ||
| 54 | * @inheritDoc | ||
| 55 | */ | ||
| 56 | 1 | public function parseResponse($responseLine, Server $server) | |
| 60 | } | ||
| 61 |