Skip to content

Commit 1caf7ee

Browse files
authored
Merge pull request #388 from rentalhost/fixes-387
IDE supports @Property [Fixes #387]
2 parents 12aacf2 + 9b35144 commit 1caf7ee

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/Detectors/AuthorUrl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function detect(): ?UriInterface
1515
?: $this->detectFromTwitter();
1616
}
1717

18-
private function detectFromTwitter(): ?UriINterface
18+
private function detectFromTwitter(): ?UriInterface
1919
{
2020
$metas = $this->extractor->getMetas();
2121
$crawler = $this->extractor->getCrawler();

src/Extractor.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace Embed;
55

6+
use DateTime;
67
use DomainException;
78
use Embed\Detectors\AuthorName;
89
use Embed\Detectors\AuthorUrl;
@@ -32,6 +33,26 @@
3233

3334
/**
3435
* Class to extract the info
36+
*
37+
* @property-read string|null $authorName
38+
* @property-read UriInterface|null $authorUrl
39+
* @property-read string|null $cms
40+
* @property-read EmbedCode|null $code
41+
* @property-read string|null $description
42+
* @property-read UriInterface $favicon
43+
* @property-read array|UriInterface[] $feeds
44+
* @property-read UriInterface|null $icon
45+
* @property-read UriInterface|null $image
46+
* @property-read array|string[] $keywords
47+
* @property-read string|null $language
48+
* @property-read array|UriInterface[] $languages
49+
* @property-read string|null $license
50+
* @property-read string $providerName
51+
* @property-read UriInterface $providerUrl
52+
* @property-read DateTime|null $publishedTime
53+
* @property-read UriInterface|null $redirect
54+
* @property-read string|null $title
55+
* @property-read UriInterface $url
3556
*/
3657
class Extractor
3758
{

0 commit comments

Comments
 (0)