PHP Class Arcanedev\SeoHelper\Entities\Keywords

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

Protected Properties

Свойство Type Description
$content array The meta content.
$name string The meta name.

Méthodes publiques

Méthode Description
__construct ( array $configs = [] ) Make Keywords instance.
__toString ( ) : string Render the tag.
add ( string $keyword ) : self Add a keyword to the content.
addMany ( array $keywords ) : self Add many keywords to the content.
get ( ) : string Get keywords content.
getContent ( ) : array Get raw keywords content.
make ( array | string $keywords ) : self Make Keywords instance.
render ( ) : string Render the tag.
set ( array | string $content ) : self Set keywords content.

Private Methods

Méthode Description
clean ( string $value ) : string Clean the string.
hasContent ( ) : boolean Check if keywords has content.

Method Details

__construct() public méthode

Make Keywords instance.
public __construct ( array $configs = [] )
$configs array

__toString() public méthode

Render the tag.
public __toString ( ) : string
Résultat string

add() public méthode

Add a keyword to the content.
public add ( string $keyword ) : self
$keyword string
Résultat self

addMany() public méthode

Add many keywords to the content.
public addMany ( array $keywords ) : self
$keywords array
Résultat self

get() public méthode

Get keywords content.
public get ( ) : string
Résultat string

getContent() public méthode

Get raw keywords content.
public getContent ( ) : array
Résultat array

make() public static méthode

Make Keywords instance.
public static make ( array | string $keywords ) : self
$keywords array | string
Résultat self

render() public méthode

Render the tag.
public render ( ) : string
Résultat string

set() public méthode

Set keywords content.
public set ( array | string $content ) : self
$content array | string
Résultat self

Property Details

$content protected_oe property

The meta content.
protected array $content
Résultat array

$name protected_oe property

The meta name.
protected string $name
Résultat string