PHP Interface Arcanedev\SeoHelper\Contracts\Entities\OpenGraph

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

Public Methods

Method Description
addProperties ( array $properties ) : self Add many open graph properties.
addProperty ( string $property, string $content ) : self Add an open graph property.
setDescription ( string $description ) : self Set description property.
setImage ( string $image ) : self Set image property.
setPrefix ( string $prefix ) : self Set the open graph prefix.
setSiteName ( string $siteName ) : self Set site name property.
setTitle ( string $title ) : self Set title property.
setType ( string $type ) : self Set type property.
setUrl ( string $url ) : self Set url property.

Method Details

addProperties() public method

Add many open graph properties.
public addProperties ( array $properties ) : self
$properties array
return self

addProperty() public method

Add an open graph property.
public addProperty ( string $property, string $content ) : self
$property string
$content string
return self

setDescription() public method

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

setImage() public method

Set image property.
public setImage ( string $image ) : self
$image string
return self

setPrefix() public method

Set the open graph prefix.
public setPrefix ( string $prefix ) : self
$prefix string
return self

setSiteName() public method

Set site name property.
public setSiteName ( string $siteName ) : self
$siteName string
return self

setTitle() public method

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

setType() public method

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

setUrl() public method

Set url property.
public setUrl ( string $url ) : self
$url string
return self