PHP Class PFinal\Wechat\Message\News

Inheritance: implements PFinal\Wechat\Contract\ReplyMessage, implements PFinal\Wechat\Contract\SendMessage
Datei anzeigen Open project: pfinal/wechat Class Usage Examples

Protected Properties

Property Type Description
$attributes
$type

Public Methods

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

Method Details

__construct() public method

$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 method

public jsonData ( ) : array
return array

toArray() public method

public toArray ( )

type() public method

public type ( ) : string
return string

xmlData() public method

public xmlData ( ) : array
return array

Property Details

$attributes protected_oe property

protected $attributes

$type protected_oe property

protected $type