PHP 클래스 Calotype\SEO\Generators\OpenGraphGenerator

파일 보기 프로젝트 열기: calotype/seo

보호된 프로퍼티들

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