PHP 클래스 Arcanedev\SeoHelper\Entities\Twitter\Card

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

보호된 프로퍼티들

프로퍼티 타입 설명
$images array Card images.
$metas Arcanedev\SeoHelper\Contracts\Entities\MetaCollection Card meta collection.
$type string Card type.

공개 메소드들

메소드 설명
__construct ( array $configs = [] ) Make the twitter card instance.
__toString ( ) : string Render the tag.
addImage ( string $url ) : Card Add image to the card.
addMeta ( string $name, string $content ) : Card Add a meta to the card.
addMetas ( array $metas ) : Card Add many metas to the card.
render ( ) : string Render the twitter card.
reset ( ) : Card Reset the card.
setDescription ( string $description ) : Card Set card description.
setSite ( string $site ) : Card Set card site.
setTitle ( string $title ) : Card Set card title.
setType ( string $type ) : Card Set the card type.
types ( ) : array Get all supported card types.

비공개 메소드들

메소드 설명
checkSite ( string &$site ) Check the card site.
checkType ( string &$type ) Check the card type.
init ( ) : Card Start the engine.
loadImages ( ) Render card images.
prepareUsername ( string $username ) : string Prepare username.
setPrefix ( string $prefix ) : Card Set meta prefix name.

메소드 상세

__construct() 공개 메소드

Make the twitter card instance.
public __construct ( array $configs = [] )
$configs array

__toString() 공개 메소드

Render the tag.
public __toString ( ) : string
리턴 string

addImage() 공개 메소드

Add image to the card.
public addImage ( string $url ) : Card
$url string
리턴 Card

addMeta() 공개 메소드

Add a meta to the card.
public addMeta ( string $name, string $content ) : Card
$name string
$content string
리턴 Card

addMetas() 공개 메소드

Add many metas to the card.
public addMetas ( array $metas ) : Card
$metas array
리턴 Card

render() 공개 메소드

Render the twitter card.
public render ( ) : string
리턴 string

reset() 공개 메소드

Reset the card.
public reset ( ) : Card
리턴 Card

setDescription() 공개 메소드

Set card description.
public setDescription ( string $description ) : Card
$description string
리턴 Card

setSite() 공개 메소드

Set card site.
public setSite ( string $site ) : Card
$site string
리턴 Card

setTitle() 공개 메소드

Set card title.
public setTitle ( string $title ) : Card
$title string
리턴 Card

setType() 공개 메소드

Set the card type.
public setType ( string $type ) : Card
$type string
리턴 Card

types() 공개 메소드

Get all supported card types.
public types ( ) : array
리턴 array

프로퍼티 상세

$images 보호되어 있는 프로퍼티

Card images.
protected array $images
리턴 array

$metas 보호되어 있는 프로퍼티

Card meta collection.
protected MetaCollection,Arcanedev\SeoHelper\Contracts\Entities $metas
리턴 Arcanedev\SeoHelper\Contracts\Entities\MetaCollection

$type 보호되어 있는 프로퍼티

Card type.
protected string $type
리턴 string