class Metadata implements JsonSerializable, Jsonable

Traits

Properties

protected array $timestamps from  Timestamps
protected array $attributes from  Accessors
array $modified from  Accessors
protected $appends
string|null $langauge Document language code
string|null $site The documents domain name
string|null $title Document title
string|null $image The first encountered image, or the og:image if available
string|null $description Document description
array $keywords Keywords
string $canonical The document canonical URL, if none found, the original request URL
string|null $icon The document favicon
string|null $author The document author
$copyright The document copyright
string|null $amphtml Link to the AMP version of this document
DateTimeInterface|Carbon $scraped The date and time when this document was scraped

Methods

serializeTimestamp($value)

No description

array
toArray()

Get the raw attributes

mixed
__get(string $property)

No description

__set(string $property, mixed $value)

No description

bool
__isset(string $property)

No description

__unset(string $key)

No description

bool
offsetExists(string $property)

No description

mixed
offsetGet(string $property)

No description

mixed
offsetSet(string $property, mixed $value)

No description

void
offsetUnset(string $key)

No description

string
__toString()

No description

__construct(array $attributes = [])

No description

array
__debugInfo()

No description

string
getIdAttribute()

No description

string
getHashAttribute()

No description

array
jsonSerialize()

No description

string
toJson(int $options = 0)

No description

Details

in Timestamps at line 18
serializeTimestamp($value)

Parameters

$value

in Accessors at line 30
array toArray()

Get the raw attributes

Return Value

array

in Accessors at line 39
mixed __get(string $property)

Parameters

string $property

Return Value

mixed

in Accessors at line 67
__set(string $property, mixed $value)

Parameters

string $property
mixed $value

in Accessors at line 97
bool __isset(string $property)

Parameters

string $property

Return Value

bool

in Accessors at line 105
__unset(string $key)

Parameters

string $key

in Accessors at line 116
bool offsetExists(string $property)

Parameters

string $property

Return Value

bool

in Accessors at line 127
mixed offsetGet(string $property)

Parameters

string $property

Return Value

mixed

in Accessors at line 137
mixed offsetSet(string $property, mixed $value)

Parameters

string $property
mixed $value

Return Value

mixed

in Accessors at line 146
void offsetUnset(string $key)

Parameters

string $key

Return Value

void

in Accessors at line 154
string __toString()

Return Value

string

at line 38
__construct(array $attributes = [])

Parameters

array $attributes

at line 51
array __debugInfo()

Return Value

array

Exceptions

InvalidFormatException

at line 67
string getIdAttribute()

Return Value

string

at line 75
string getHashAttribute()

Return Value

string

at line 90
array jsonSerialize()

Return Value

array

at line 99
string toJson(int $options = 0)

Parameters

int $options

Return Value

string