PHP Interface Arcanedev\SeoHelper\Contracts\SeoMeta

Author: ARCANEDEV ([email protected])
Inheritance: extends Arcanedev\SeoHelper\Contracts\Renderable
显示文件 Open project: arcanedev/seo-helper

Public Methods

Method Description
addKeyword ( string $keyword ) : self Add a keyword.
addKeywords ( array $keywords ) : self Add many keywords.
addMeta ( string $name, string $content ) : self Add a meta tag.
addMetas ( array $metas ) : self Add many meta tags.
addWebmaster ( string $webmaster, string $content ) : self Add a webmaster tool site verifier.
description ( Arcanedev\SeoHelper\Contracts\Entities\Description $description ) : self Set the Description instance.
keywords ( Arcanedev\SeoHelper\Contracts\Entities\Keywords $keywords ) : self Set the Keywords instance.
misc ( Arcanedev\SeoHelper\Contracts\Entities\MiscTags $misc ) : self Set the MiscTags instance.
removeMeta ( string | array $names ) : self Remove a meta from the meta collection by key.
resetMetas ( ) : self Reset the meta collection except the description and keywords metas.
resetWebmasters ( ) : self Reset all webmaster tool site verifier metas.
setDescription ( string $content ) : self Set the description content.
setGoogleAnalytics ( string $code ) : self Set the Google Analytics code.
setKeywords ( array | string $content ) : self Set the keywords content.
setSiteName ( string $siteName ) : self Set the site name.
setTitle ( string $title, string $siteName = null, string $separator = null ) : self Set the title.
setUrl ( string $url ) : self Set the current URL.
title ( Arcanedev\SeoHelper\Contracts\Entities\Title $title ) : self Set the Title instance.
webmasters ( Arcanedev\SeoHelper\Contracts\Entities\Webmasters $webmasters ) : self Set the Webmasters instance.

Method Details

addKeyword() public method

Add a keyword.
public addKeyword ( string $keyword ) : self
$keyword string
return self

addKeywords() public method

Add many keywords.
public addKeywords ( array $keywords ) : self
$keywords array
return self

addMeta() public method

Add a meta tag.
public addMeta ( string $name, string $content ) : self
$name string
$content string
return self

addMetas() public method

Add many meta tags.
public addMetas ( array $metas ) : self
$metas array
return self

addWebmaster() public method

Add a webmaster tool site verifier.
public addWebmaster ( string $webmaster, string $content ) : self
$webmaster string
$content string
return self

description() public method

Set the Description instance.
public description ( Arcanedev\SeoHelper\Contracts\Entities\Description $description ) : self
$description Arcanedev\SeoHelper\Contracts\Entities\Description
return self

keywords() public method

Set the Keywords instance.
public keywords ( Arcanedev\SeoHelper\Contracts\Entities\Keywords $keywords ) : self
$keywords Arcanedev\SeoHelper\Contracts\Entities\Keywords
return self

misc() public method

Set the MiscTags instance.
public misc ( Arcanedev\SeoHelper\Contracts\Entities\MiscTags $misc ) : self
$misc Arcanedev\SeoHelper\Contracts\Entities\MiscTags
return self

removeMeta() public method

Remove a meta from the meta collection by key.
public removeMeta ( string | array $names ) : self
$names string | array
return self

resetMetas() public method

Reset the meta collection except the description and keywords metas.
public resetMetas ( ) : self
return self

resetWebmasters() public method

Reset all webmaster tool site verifier metas.
public resetWebmasters ( ) : self
return self

setDescription() public method

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

setGoogleAnalytics() public method

Set the Google Analytics code.
public setGoogleAnalytics ( string $code ) : self
$code string
return self

setKeywords() public method

Set the keywords content.
public setKeywords ( array | string $content ) : self
$content array | string
return self

setSiteName() public method

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

setTitle() public method

Set the title.
public setTitle ( string $title, string $siteName = null, string $separator = null ) : self
$title string
$siteName string
$separator string
return self

setUrl() public method

Set the current URL.
public setUrl ( string $url ) : self
$url string
return self

title() public method

Set the Title instance.
public title ( Arcanedev\SeoHelper\Contracts\Entities\Title $title ) : self
$title Arcanedev\SeoHelper\Contracts\Entities\Title
return self

webmasters() public method

Set the Webmasters instance.
public webmasters ( Arcanedev\SeoHelper\Contracts\Entities\Webmasters $webmasters ) : self
$webmasters Arcanedev\SeoHelper\Contracts\Entities\Webmasters
return self