PHP Class Arcanedev\SeoHelper\Entities\Webmasters

Author: ARCANEDEV ([email protected])
Inheritance: implements Arcanedev\SeoHelper\Contracts\Entities\Webmasters, use trait Arcanedev\Support\Traits\Configurable
Show file Open project: arcanedev/seo-helper

Protected Properties

Property Type Description
$metas Arcanedev\SeoHelper\Contracts\Entities\MetaCollection The meta collection.
$supported array The supported webmasters.

Public Methods

Method Description
__construct ( array $configs = [] ) Create Webmasters instance.
__toString ( ) : string Render the tag.
add ( string $webmaster, string $content ) : Webmasters Add a webmaster to collection.
make ( array $webmasters = [] ) : Webmasters Make Webmaster instance.
render ( ) : string Render the tag.
reset ( ) : Webmasters Reset the webmaster collection.

Private Methods

Method Description
getWebmasterName ( string $webmaster ) : string Get the webmaster meta name.
init ( ) Start the engine.
isSupported ( string $webmaster ) : boolean Check if the webmaster is supported.

Method Details

__construct() public method

Create Webmasters instance.
public __construct ( array $configs = [] )
$configs array

__toString() public method

Render the tag.
public __toString ( ) : string
return string

add() public method

Add a webmaster to collection.
public add ( string $webmaster, string $content ) : Webmasters
$webmaster string
$content string
return Webmasters

make() public static method

Make Webmaster instance.
public static make ( array $webmasters = [] ) : Webmasters
$webmasters array
return Webmasters

render() public method

Render the tag.
public render ( ) : string
return string

reset() public method

Reset the webmaster collection.
public reset ( ) : Webmasters
return Webmasters

Property Details

$metas protected property

The meta collection.
protected MetaCollection,Arcanedev\SeoHelper\Contracts\Entities $metas
return Arcanedev\SeoHelper\Contracts\Entities\MetaCollection

$supported protected property

The supported webmasters.
protected array $supported
return array