| 1 | <?php |
||
| 5 | abstract class Attachment |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The attachment path. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $path; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The attachment API endpoint. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $apiEndpoint; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The attachment API method. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $apiMethod = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get the attachment path. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 3 | public function getPath() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Get the attachment API endpoint. |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 3 | public function getApiEndpoint() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Get the attachment API method. |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 3 | public function getApiMethod() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * Get additional attachment data. |
||
| 60 | * |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | 1 | public function getData() |
|
| 67 | } |
||
| 68 | |||
| 69 |