PHP Class Arcanedev\SeoHelper\Entities\OpenGraph\Graph

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

Protected Properties

Свойство Type Description
$metas Arcanedev\SeoHelper\Contracts\Entities\MetaCollection The Open Graph meta collection.

Méthodes publiques

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

Private Methods

Méthode Description
init ( ) Start the engine.

Method Details

__construct() public méthode

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

__toString() public méthode

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

addProperties() public méthode

Add many open graph properties.
public addProperties ( array $properties ) : Graph
$properties array
Résultat Graph

addProperty() public méthode

Add an open graph property.
public addProperty ( string $property, string $content ) : Graph
$property string
$content string
Résultat Graph

render() public méthode

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

setDescription() public méthode

Set description property.
public setDescription ( string $description ) : Graph
$description string
Résultat Graph

setImage() public méthode

Set image property.
public setImage ( string $image ) : Graph
$image string
Résultat Graph

setPrefix() public méthode

Set the open graph prefix.
public setPrefix ( string $prefix ) : Graph
$prefix string
Résultat Graph

setSiteName() public méthode

Set site name property.
public setSiteName ( string $siteName ) : Graph
$siteName string
Résultat Graph

setTitle() public méthode

Set title property.
public setTitle ( string $title ) : Graph
$title string
Résultat Graph

setType() public méthode

Set type property.
public setType ( string $type ) : Graph
$type string
Résultat Graph

setUrl() public méthode

Set url property.
public setUrl ( string $url ) : Graph
$url string
Résultat Graph

Property Details

$metas protected_oe property

The Open Graph meta collection.
protected MetaCollection,Arcanedev\SeoHelper\Contracts\Entities $metas
Résultat Arcanedev\SeoHelper\Contracts\Entities\MetaCollection