| 1 | <?php |
||
| 7 | class ScaleEngineTicketFactory extends AbstractScaleEngineModelFactory |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Create the model factory for ScaleEngine tickets. |
||
| 11 | */ |
||
| 12 | public function __construct() |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Parse the data given into correct types and changes keys based on the |
||
| 22 | * key map. |
||
| 23 | * |
||
| 24 | * @param array $data The ticket data to parse. |
||
| 25 | * @return array The data after being converted to the parsed form. |
||
| 26 | */ |
||
| 27 | public function parseData(array $data) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Gets the key map for API results to the ScaleEngineTicket model. |
||
| 46 | * |
||
| 47 | * @return array A map of keys from ScaleEngine's API to exposed model. |
||
| 48 | */ |
||
| 49 | private function _keyMap() |
||
| 63 | } |
||
| 64 |