| 1 | <?php |
||
| 14 | abstract class Factory implements FactoryInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param mixed $data |
||
| 18 | * |
||
| 19 | * @return mixed |
||
| 20 | * @throws MailxpertSDKException |
||
| 21 | */ |
||
| 22 | public static function parse($data) |
||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * Build collection of elements |
||
| 40 | * |
||
| 41 | * @param $data |
||
| 42 | * |
||
| 43 | * @return mixed |
||
| 44 | * @throws MailxpertSDKException |
||
| 45 | */ |
||
| 46 | protected static function buildCollection($data) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Build element |
||
| 53 | * |
||
| 54 | * @param $data |
||
| 55 | * |
||
| 56 | * @return mixed |
||
| 57 | * @throws MailxpertSDKException |
||
| 58 | */ |
||
| 59 | protected static function buildElement($data) |
||
| 63 | } |
||
| 64 |