PHP Class Arcanedev\SeoHelper\Entities\Description

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

Protected Properties

Свойство Type Description
$content string The meta content.
$max integer The description max length.
$name string The meta name.

Méthodes publiques

Méthode Description
__construct ( array $configs = [] ) Make Description instance.
__toString ( ) : string Render the tag.
get ( ) : string Get description content.
getContent ( ) : string Get raw description content.
getMax ( ) : integer Get description max length.
make ( string $content, integer $max = 155 ) : self Make a description instance.
render ( ) : string Render the tag.
set ( string $content ) : self Set description content.
setMax ( integer $max ) : self Set description max length.

Private Methods

Méthode Description
checkMax ( integer $max ) Check title max length.
hasContent ( ) : boolean Check if description has content.

Method Details

__construct() public méthode

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

__toString() public méthode

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

get() public méthode

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

getContent() public méthode

Get raw description content.
public getContent ( ) : string
Résultat string

getMax() public méthode

Get description max length.
public getMax ( ) : integer
Résultat integer

make() public static méthode

Make a description instance.
public static make ( string $content, integer $max = 155 ) : self
$content string
$max integer
Résultat self

render() public méthode

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

set() public méthode

Set description content.
public set ( string $content ) : self
$content string
Résultat self

setMax() public méthode

Set description max length.
public setMax ( integer $max ) : self
$max integer
Résultat self

Property Details

$content protected_oe property

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

$max protected_oe property

The description max length.
protected int $max
Résultat integer

$name protected_oe property

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