PHP Класс Calotype\SEO\Generators\OpenGraphGenerator

Показать файл Открыть проект

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

Свойство Тип Описание
$properties array The properties that we are going to generate.
$required array The properties that are required.

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

Метод Описание
fromObject ( Calotype\SEO\Contracts\OpenGraphAware $object ) Use the open graph data of a open graph aware object.
fromRaw ( array $properties ) Set the open graph properties from a raw array.
generate ( ) : string Render the open graph tags.
reset ( ) : void Reset all the properties.

Защищенные методы

Метод Описание
validateProperties ( array $properties ) Validate to make sure the properties contain all required ones.

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

fromObject() публичный Метод

Use the open graph data of a open graph aware object.
public fromObject ( Calotype\SEO\Contracts\OpenGraphAware $object )
$object Calotype\SEO\Contracts\OpenGraphAware

fromRaw() публичный Метод

Set the open graph properties from a raw array.
public fromRaw ( array $properties )
$properties array

generate() публичный Метод

Render the open graph tags.
public generate ( ) : string
Результат string

reset() публичный Метод

Reset all the properties.
public reset ( ) : void
Результат void

validateProperties() защищенный Метод

Validate to make sure the properties contain all required ones.
protected validateProperties ( array $properties )
$properties array

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

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

The properties that we are going to generate.
protected array $properties
Результат array

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

The properties that are required.
protected array $required
Результат array