PHP 클래스 Arcanedev\SeoHelper\Entities\OpenGraph\Graph

저자: ARCANEDEV ([email protected])
상속: implements Arcanedev\SeoHelper\Contracts\Entities\OpenGraphInterface, use trait Arcanedev\Support\Traits\Configurable
파일 보기 프로젝트 열기: arcanedev/seo-helper

보호된 프로퍼티들

프로퍼티 타입 설명
$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