Skip to content

Commit

Permalink
Merge pull request #388 from rentalhost/fixes-387
Browse files Browse the repository at this point in the history
IDE supports @Property [Fixes #387]
  • Loading branch information
oscarotero authored Sep 23, 2020
2 parents 12aacf2 + 9b35144 commit 1caf7ee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
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

0 comments on commit 1caf7ee

Please sign in to comment.