Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE supports @property [Fixes #387] #388

Merged
merged 2 commits into from
Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Detectors/AuthorUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function detect(): ?UriInterface
?: $this->detectFromTwitter();
}

private function detectFromTwitter(): ?UriINterface
private function detectFromTwitter(): ?UriInterface
{
$metas = $this->extractor->getMetas();
$crawler = $this->extractor->getCrawler();
Expand Down
21 changes: 21 additions & 0 deletions src/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace Embed;

use DateTime;
use DomainException;
use Embed\Detectors\AuthorName;
use Embed\Detectors\AuthorUrl;
Expand Down Expand Up @@ -32,6 +33,26 @@

/**
* Class to extract the info
*
* @property-read string|null $authorName
* @property-read UriInterface|null $authorUrl
* @property-read string|null $cms
* @property-read EmbedCode|null $code
* @property-read string|null $description
* @property-read UriInterface $favicon
* @property-read array|UriInterface[] $feeds
* @property-read UriInterface|null $icon
* @property-read UriInterface|null $image
* @property-read array|string[] $keywords
* @property-read string|null $language
* @property-read array|UriInterface[] $languages
* @property-read string|null $license
* @property-read string $providerName
* @property-read UriInterface $providerUrl
* @property-read DateTime|null $publishedTime
* @property-read UriInterface|null $redirect
* @property-read string|null $title
* @property-read UriInterface $url
*/
class Extractor
{
Expand Down