| 1 | <?php |
||
| 11 | class RequestTicketResponse extends AbstractScaleEngineResponse |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Get the response from the command as a ScaleEngineTicket model. |
||
| 15 | * |
||
| 16 | * This takes the command given, ensures that it has a successful response, |
||
| 17 | * and converts the response into a ScaleEngineTicket model. |
||
| 18 | * |
||
| 19 | * @param OperationCommand $command The RequestTicket API call made. |
||
| 20 | * @param ScaleEngineTicketFactory $modelFactory The factory to use to |
||
| 21 | * create tickets. Will be created if not given. |
||
| 22 | * @return ScaleEngineTicket The ticket returned from the API request. |
||
| 23 | */ |
||
| 24 | public static function fromCommand(OperationCommand $command, ScaleEngineTicketFactory $modelFactory = null) |
||
| 30 | } |
||
| 31 |