1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
<?php
namespace Embed;
/**
* Interface used by all adapters and providers.
*/
interface DataInterface
{
/**
* Gets the title.
*
* @return string|null
*/
public function getTitle();
/**
* Gets the description.
*
* @return string|null
*/
public function getDescription();
/**
* Gets the type of the url
* The types are the same than the oEmbed types:
* video, photo, link, rich.
*
* @return string|null
*/
public function getType();
/**
* Gets the tags of the url.
*
* @return array
*/
public function getTags();
/**
* Gets the feeds urls.
*
* @return array
*/
public function getFeeds();
/**
* Gets the embed code.
*
* @return string|null
*/
public function getCode();
/**
* Gets the canonical url.
*
* @return string|null
*/
public function getUrl();
/**
* Gets the author name.
*
* @return string|null
*/
public function getAuthorName();
/**
* Gets the author url.
*
* @return string|null
*/
public function getAuthorUrl();
/**
* Gets the urls of all icons of the provider
* Note: it doesn't check whether the image exists or not.
*
* @return array
*/
public function getProviderIconsUrls();
/**
* Gets the provider name.
*
* @return string|null
*/
public function getProviderName();
/**
* Gets the provider url (usually the home url of the link).
*
* @return string|null
*/
public function getProviderUrl();
/**
* Gets the urls of all images found in the webpage
* Note: it doesn't check whether the image exists or not.
*
* @return array
*/
public function getImagesUrls();
/**
* Gets the width of the embedded widget.
*
* @return int|null
*/
public function getWidth();
/**
* Gets the height of the embedded widget.
*
* @return int|null
*/
public function getHeight();
/**
* Gets the published time, if the webpage is an article.
*
* @return string|null
*/
public function getPublishedTime();
/**
* Gets the license info.
*
* @return string|null
*/
public function getLicense();
/**
* Returns all linked data found.
*
* @return array
*/
public function getLinkedData();
}
|