Skip to content

Commit fb61d1d

Browse files
committed
Extractor: added @property-read to public properties accessed via magic __get();
1 parent 12aacf2 commit fb61d1d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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)