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

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

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

Свойство Тип Описание
$metas Arcanedev\SeoHelper\Contracts\Entities\MetaCollection The meta collection.
$supported array The supported webmasters.

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

Метод Описание
__construct ( array $configs = [] ) Create Webmasters instance.
__toString ( ) : string Render the tag.
add ( string $webmaster, string $content ) : Webmasters Add a webmaster to collection.
make ( array $webmasters = [] ) : Webmasters Make Webmaster instance.
render ( ) : string Render the tag.
reset ( ) : Webmasters Reset the webmaster collection.

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

Метод Описание
getWebmasterName ( string $webmaster ) : string Get the webmaster meta name.
init ( ) Start the engine.
isSupported ( string $webmaster ) : boolean Check if the webmaster is supported.

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

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

Create Webmasters instance.
public __construct ( array $configs = [] )
$configs array

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

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

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

Add a webmaster to collection.
public add ( string $webmaster, string $content ) : Webmasters
$webmaster string
$content string
Результат Webmasters

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

Make Webmaster instance.
public static make ( array $webmasters = [] ) : Webmasters
$webmasters array
Результат Webmasters

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

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

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

Reset the webmaster collection.
public reset ( ) : Webmasters
Результат Webmasters

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

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

The meta collection.
protected MetaCollection,Arcanedev\SeoHelper\Contracts\Entities $metas
Результат Arcanedev\SeoHelper\Contracts\Entities\MetaCollection

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

The supported webmasters.
protected array $supported
Результат array