| 1 | <?php |
||
| 10 | class SerializedCommandData |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Serialized command representation. In most cases - a string |
||
| 14 | * |
||
| 15 | * @var mixed |
||
| 16 | */ |
||
| 17 | private $serializedCommand; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Command class name. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $commandClass; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Class consructor. |
||
| 28 | * |
||
| 29 | * @param mixed $serializedCommand |
||
| 30 | * @param string $commandClass |
||
| 31 | */ |
||
| 32 | 2 | public function __construct($serializedCommand, $commandClass) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Get serialized command representation. |
||
| 40 | * |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | 2 | public function getSerializedCommand() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Get command class. |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 2 | public function getCommandClass() |
|
| 57 | } |
||
| 58 |