| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | interface IFooGalleryDatasource { |
||
|
|
|||
| 8 | |||
| 9 | /** |
||
| 10 | * Sets the FooGallery object we are dealing with |
||
| 11 | * |
||
| 12 | * @param $foogallery FooGallery |
||
| 13 | */ |
||
| 14 | public function setGallery( $foogallery ); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Returns the number of images/videos in the datasource |
||
| 18 | * @return int |
||
| 19 | */ |
||
| 20 | public function getCount(); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Returns an array of FooGalleryAttachments from the datasource |
||
| 24 | * @return array(FooGalleryAttachment) |
||
| 25 | */ |
||
| 26 | public function getAttachments(); |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns the featured FooGalleryAttachment from the datasource |
||
| 30 | * @return bool|FooGalleryAttachment |
||
| 31 | */ |
||
| 32 | public function getFeaturedAttachment(); |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Returns a serialized string that represents the media in the datasource. |
||
| 36 | * This string is persisted when saving a FooGallery |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getSerializedData(); |
||
| 41 | |||
| 42 | //attachment_count |
||
| 43 | //attachment_id_csv |
||
| 44 | //attachments |
||
| 45 | //find_featured_attachment_id |
||
| 46 | //featured_attachment |
||
| 47 | //featured_image_html |
||
| 48 | } |
||
| 49 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.