PHP Interface Arcanedev\SeoHelper\Contracts\Entities\TwitterCard

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

Public Methods

Method Description
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.

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 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

reset() public method

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

setDescription() public method

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

setSite() public method

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

setTitle() public method

Set 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

types() public method

Get all supported card types.
public types ( ) : array
return array