PHP Класс Arcanedev\SeoHelper\Entities\OpenGraph\Graph

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

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

Свойство Тип Описание
$metas Arcanedev\SeoHelper\Contracts\Entities\MetaCollection The Open Graph meta collection.

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

Метод Описание
__construct ( array $configs = [] ) Make Graph instance.
__toString ( ) : string Render the tag.
addProperties ( array $properties ) : Graph Add many open graph properties.
addProperty ( string $property, string $content ) : Graph Add an open graph property.
render ( ) : string Render the tag.
setDescription ( string $description ) : Graph Set description property.
setImage ( string $image ) : Graph Set image property.
setPrefix ( string $prefix ) : Graph Set the open graph prefix.
setSiteName ( string $siteName ) : Graph Set site name property.
setTitle ( string $title ) : Graph Set title property.
setType ( string $type ) : Graph Set type property.
setUrl ( string $url ) : Graph Set url property.

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

Метод Описание
init ( ) Start the engine.

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

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

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

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

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

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

Add many open graph properties.
public addProperties ( array $properties ) : Graph
$properties array
Результат Graph

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

Add an open graph property.
public addProperty ( string $property, string $content ) : Graph
$property string
$content string
Результат Graph

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

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

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

Set description property.
public setDescription ( string $description ) : Graph
$description string
Результат Graph

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

Set image property.
public setImage ( string $image ) : Graph
$image string
Результат Graph

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

Set the open graph prefix.
public setPrefix ( string $prefix ) : Graph
$prefix string
Результат Graph

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

Set site name property.
public setSiteName ( string $siteName ) : Graph
$siteName string
Результат Graph

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

Set title property.
public setTitle ( string $title ) : Graph
$title string
Результат Graph

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

Set type property.
public setType ( string $type ) : Graph
$type string
Результат Graph

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

Set url property.
public setUrl ( string $url ) : Graph
$url string
Результат Graph

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

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

The Open Graph meta collection.
protected MetaCollection,Arcanedev\SeoHelper\Contracts\Entities $metas
Результат Arcanedev\SeoHelper\Contracts\Entities\MetaCollection