PHP Класс Arcanedev\SeoHelper\Entities\Keywords

Автор: ARCANEDEV ([email protected])
Наследование: implements Arcanedev\SeoHelper\Contracts\Entities\Keywords, use trait Arcanedev\Support\Traits\Configurable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$content array The meta content.
$name string The meta name.

Открытые методы

Метод Описание
__construct ( array $configs = [] ) Make Keywords instance.
__toString ( ) : string Render the tag.
add ( string $keyword ) : self Add a keyword to the content.
addMany ( array $keywords ) : self Add many keywords to the content.
get ( ) : string Get keywords content.
getContent ( ) : array Get raw keywords content.
make ( array | string $keywords ) : self Make Keywords instance.
render ( ) : string Render the tag.
set ( array | string $content ) : self Set keywords content.

Приватные методы

Метод Описание
clean ( string $value ) : string Clean the string.
hasContent ( ) : boolean Check if keywords has content.

Описание методов

__construct() публичный метод

Make Keywords instance.
public __construct ( array $configs = [] )
$configs array

__toString() публичный метод

Render the tag.
public __toString ( ) : string
Результат string

add() публичный метод

Add a keyword to the content.
public add ( string $keyword ) : self
$keyword string
Результат self

addMany() публичный метод

Add many keywords to the content.
public addMany ( array $keywords ) : self
$keywords array
Результат self

get() публичный метод

Get keywords content.
public get ( ) : string
Результат string

getContent() публичный метод

Get raw keywords content.
public getContent ( ) : array
Результат array

make() публичный статический метод

Make Keywords instance.
public static make ( array | string $keywords ) : self
$keywords array | string
Результат self

render() публичный метод

Render the tag.
public render ( ) : string
Результат string

set() публичный метод

Set keywords content.
public set ( array | string $content ) : self
$content array | string
Результат self

Описание свойств

$content защищенное свойство

The meta content.
protected array $content
Результат array

$name защищенное свойство

The meta name.
protected string $name
Результат string