PageSeo
in package
implements
ArrayAccess
Table of Contents
Interfaces
- ArrayAccess
Properties
- $attributtes : array<string|int, mixed>
Methods
- __construct() : mixed
- addMeta() : static
- <code> $seo->addMeta('og:url', ['property'=> 'og:url', 'content'=> 'url']); </code>.
- getAttribute() : mixed
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- setAttribute() : static
- toArray() : array<string, mixed>
Properties
$attributtes
public
array<string|int, mixed>
$attributtes
Methods
__construct()
public
__construct(array<string|int, mixed> $attributes) : mixed
Parameters
- $attributes : array<string|int, mixed>
addMeta()
<code> $seo->addMeta('og:url', ['property'=> 'og:url', 'content'=> 'url']); </code>.
public
addMeta(string $key, array<string|int, mixed> $meta) : static
Parameters
- $key : string
- $meta : array<string|int, mixed>
Return values
staticgetAttribute()
public
getAttribute(string $key) : mixed
Parameters
- $key : string
offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
setAttribute()
public
setAttribute(string $key, mixed $value) : static
Parameters
- $key : string
- $value : mixed
Return values
statictoArray()
public
toArray() : array<string, mixed>