PHP Interface Arcanedev\SeoHelper\Contracts\SeoTwitter

Author: ARCANEDEV ([email protected])
Inheritance: extends Arcanedev\SeoHelper\Contracts\Renderable
Show file Open project: arcanedev/seo-helper

Public Methods

Method Description
addImage ( string $url ) : self Add image to the card.
addMeta ( string $name, string $content ) : self Add a meta to the twitter card.
addMetas ( array $metas ) : self Add many metas to the card.
disable ( ) : self Disable the Twitter Card.
enable ( ) : self Enable the Twitter Card.
isDisabled ( ) : boolean Check if the Twitter Card is disabled.
isEnabled ( ) : boolean Check if the Twitter Card is enabled.
reset ( ) : self Reset the twitter card.
setCard ( Arcanedev\SeoHelper\Contracts\Entities\TwitterCard $card ) : self Set the twitter card instance.
setDescription ( string $description ) : self Set the card description.
setSite ( string $site ) : self Set the card site.
setTitle ( string $title ) : self Set the card title.
setType ( string $type ) : self Set the card type.

Method Details

addImage() public method

Add image to the card.
public addImage ( string $url ) : self
$url string
return self

addMeta() public method

Add a meta to the twitter card.
public addMeta ( string $name, string $content ) : self
$name string
$content string
return self

addMetas() public method

Add many metas to the card.
public addMetas ( array $metas ) : self
$metas array
return self

disable() public method

Disable the Twitter Card.
public disable ( ) : self
return self

enable() public method

Enable the Twitter Card.
public enable ( ) : self
return self

isDisabled() public method

Check if the Twitter Card is disabled.
public isDisabled ( ) : boolean
return boolean

isEnabled() public method

Check if the Twitter Card is enabled.
public isEnabled ( ) : boolean
return boolean

reset() public method

Reset the twitter card.
public reset ( ) : self
return self

setCard() public method

Set the twitter card instance.
public setCard ( Arcanedev\SeoHelper\Contracts\Entities\TwitterCard $card ) : self
$card Arcanedev\SeoHelper\Contracts\Entities\TwitterCard
return self

setDescription() public method

Set the card description.
public setDescription ( string $description ) : self
$description string
return self

setSite() public method

Set the card site.
public setSite ( string $site ) : self
$site string
return self

setTitle() public method

Set the card title.
public setTitle ( string $title ) : self
$title string
return self

setType() public method

Set the card type.
public setType ( string $type ) : self
$type string
return self