PHP Класс Arcanedev\SeoHelper\Entities\Description

Автор: ARCANEDEV ([email protected])
Наследование: implements Arcanedev\SeoHelper\Contracts\Entities\Description, use trait Arcanedev\Support\Traits\Configurable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$content string The meta content.
$max integer The description max length.
$name string The meta name.

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
checkMax ( integer $max ) Check title max length.
hasContent ( ) : boolean Check if description has content.

Описание методов

__construct() публичный метод

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

__toString() публичный метод

Render the tag.
public __toString ( ) : string
Результат string

get() публичный метод

Get description content.
public get ( ) : string
Результат string

getContent() публичный метод

Get raw description content.
public getContent ( ) : string
Результат string

getMax() публичный метод

Get description max length.
public getMax ( ) : integer
Результат integer

make() публичный статический метод

Make a description instance.
public static make ( string $content, integer $max = 155 ) : self
$content string
$max integer
Результат self

render() публичный метод

Render the tag.
public render ( ) : string
Результат string

set() публичный метод

Set description content.
public set ( string $content ) : self
$content string
Результат self

setMax() публичный метод

Set description max length.
public setMax ( integer $max ) : self
$max integer
Результат self

Описание свойств

$content защищенное свойство

The meta content.
protected string $content
Результат string

$max защищенное свойство

The description max length.
protected int $max
Результат integer

$name защищенное свойство

The meta name.
protected string $name
Результат string