/** * @inheritdoc */ public function jsonSerialize() { $json = parent::jsonSerialize(); $json['title'] = $this->title; $json['payload'] = $this->payload; return $json; }
public function __construct() { parent::__construct(Button::TYPE_SHARE); }
/** * @inheritdoc */ public function jsonSerialize() { $json = parent::jsonSerialize(); $json['url'] = $this->url; return $json; }
public function __construct() { parent::__construct(Button::TYPE_ACCOUNT_UNLINK); }
/** * @inheritdoc */ public function jsonSerialize() { $json = parent::jsonSerialize(); $json['title'] = $this->title; $json['url'] = $this->url; if (!empty($this->webviewHeightRatio)) { $json['webview_height_ratio'] = $this->webviewHeightRatio; } if ($this->messengerExtensions) { $json['messenger_extensions'] = $this->messengerExtensions; } if (!empty($this->fallbackUrl)) { $json['fallback_url'] = $this->fallbackUrl; } return $json; }