GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

IFooGalleryDatasource::getCount()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
/**
3
 * FooGallery Datasource interface
4
 */
5
if ( ! interface_exists( 'IFooGalleryDatasource' ) ) {
6
7
	interface IFooGalleryDatasource {
0 ignored issues
show
Coding Style Compatibility introduced by
Each interface must be in a namespace of at least one level (a top-level vendor name)

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
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)
0 ignored issues
show
Documentation introduced by
The doc-type array(FooGalleryAttachment) could not be parsed: Expected "|" or "end of type", but got "(" at position 5. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
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
}