PHP Класс Arcanedev\SeoHelper\SeoTwitter

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

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

Свойство Тип Описание
$card Arcanedev\SeoHelper\Contracts\Entities\TwitterCard The Twitter Card instance.
$enabled boolean Enable or Disable the Twitter Card.

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

Метод Описание
__construct ( array $configs ) Make SeoTwitter instance.
__toString ( ) : string Render the tag.
addImage ( string $url ) : SeoTwitter Add image to the card.
addMeta ( string $name, string $content ) : SeoTwitter Add a meta to the Twitter Card.
addMetas ( array $metas ) : SeoTwitter Add many metas to the card.
disable ( ) : SeoTwitter Disable the Twitter Card.
enable ( ) : SeoTwitter Enable the Twitter Card.
isDisabled ( ) : boolean Check if the Twitter Card is disabled.
isEnabled ( ) : boolean Check if the Twitter Card is enabled.
render ( ) : string Render the tag.
reset ( ) : SeoTwitter Reset the Twitter Card.
setCard ( Arcanedev\SeoHelper\Contracts\Entities\TwitterCard $card ) : SeoTwitter Set the Twitter Card instance.
setDescription ( string $description ) : SeoTwitter Set the card description.
setSite ( string $site ) : SeoTwitter Set the card site.
setTitle ( string $title ) : SeoTwitter Set the card title.
setType ( string $type ) : SeoTwitter Set the card type.

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

Метод Описание
setEnabled ( boolean $enabled ) : SeoTwitter Set the enabled status for the Twitter Card.

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

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

Make SeoTwitter instance.
public __construct ( array $configs )
$configs array

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

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

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

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

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

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

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

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

disable() публичный Метод

Disable the Twitter Card.
public disable ( ) : SeoTwitter
Результат SeoTwitter

enable() публичный Метод

Enable the Twitter Card.
public enable ( ) : SeoTwitter
Результат SeoTwitter

isDisabled() публичный Метод

Check if the Twitter Card is disabled.
public isDisabled ( ) : boolean
Результат boolean

isEnabled() публичный Метод

Check if the Twitter Card is enabled.
public isEnabled ( ) : boolean
Результат boolean

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

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

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

Reset the Twitter Card.
public reset ( ) : SeoTwitter
Результат SeoTwitter

setCard() публичный Метод

Set the Twitter Card instance.
public setCard ( Arcanedev\SeoHelper\Contracts\Entities\TwitterCard $card ) : SeoTwitter
$card Arcanedev\SeoHelper\Contracts\Entities\TwitterCard
Результат SeoTwitter

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

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

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

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

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

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

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

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

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

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

The Twitter Card instance.
protected TwitterCard,Arcanedev\SeoHelper\Contracts\Entities $card
Результат Arcanedev\SeoHelper\Contracts\Entities\TwitterCard

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

Enable or Disable the Twitter Card.
protected bool $enabled
Результат boolean