PHP 클래스 PFinal\Wechat\Message\News

상속: implements PFinal\Wechat\Contract\ReplyMessage, implements PFinal\Wechat\Contract\SendMessage
파일 보기 프로젝트 열기: pfinal/wechat 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes
$type

공개 메소드들

메소드 설명
__construct ( string $title = '', string $description = '', string $url = '', string $picUrl = '' ) $arr = ['文章标题', '描述', 'url', 'image'];
jsonData ( ) : array
toArray ( )
type ( ) : string
xmlData ( ) : array

메소드 상세

__construct() 공개 메소드

$news1 = new News('文章标题', '描述', 'url', 'image') $news2 = new News($arr) $news3 = new News([$arr,$arr]) $news4 = new News([$news1,$news2])
public __construct ( string $title = '', string $description = '', string $url = '', string $picUrl = '' )
$title string
$description string
$url string
$picUrl string

jsonData() 공개 메소드

public jsonData ( ) : array
리턴 array

toArray() 공개 메소드

public toArray ( )

type() 공개 메소드

public type ( ) : string
리턴 string

xmlData() 공개 메소드

public xmlData ( ) : array
리턴 array

프로퍼티 상세

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

protected $attributes

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

protected $type