PHP Class Calotype\SEO\Generators\OpenGraphGenerator

Afficher le fichier Open project: calotype/seo

Protected Properties

Свойство Type Description
$properties array The properties that we are going to generate.
$required array The properties that are required.

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
validateProperties ( array $properties ) Validate to make sure the properties contain all required ones.

Method Details

fromObject() public méthode

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

fromRaw() public méthode

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

generate() public méthode

Render the open graph tags.
public generate ( ) : string
Résultat string

reset() public méthode

Reset all the properties.
public reset ( ) : void
Résultat void

validateProperties() protected méthode

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

Property Details

$properties protected_oe property

The properties that we are going to generate.
protected array $properties
Résultat array

$required protected_oe property

The properties that are required.
protected array $required
Résultat array