PHP Интерфейс Arcanedev\SeoHelper\Contracts\Entities\TwitterCard

Автор: ARCANEDEV ([email protected])
Наследование: extends Arcanedev\SeoHelper\Contracts\Renderable
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
addImage ( string $url ) : self Add image to the card.
addMeta ( string $name, string $content ) : self Add a meta to the card.
addMetas ( array $metas ) : self Add many metas to the card.
reset ( ) : self Reset the card.
setDescription ( string $description ) : self Set card description.
setSite ( string $site ) : self Set card site.
setTitle ( string $title ) : self Set card title.
setType ( string $type ) : self Set the card type.
types ( ) : array Get all supported card types.

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

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

Add image to the card.
public addImage ( string $url ) : self
$url string
Результат self

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

Add a meta to the card.
public addMeta ( string $name, string $content ) : self
$name string
$content string
Результат self

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

Add many metas to the card.
public addMetas ( array $metas ) : self
$metas array
Результат self

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

Reset the card.
public reset ( ) : self
Результат self

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

Set card description.
public setDescription ( string $description ) : self
$description string
Результат self

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

Set card site.
public setSite ( string $site ) : self
$site string
Результат self

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

Set card title.
public setTitle ( string $title ) : self
$title string
Результат self

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

Set the card type.
public setType ( string $type ) : self
$type string
Результат self

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

Get all supported card types.
public types ( ) : array
Результат array