1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00
invoiceninja/app/Libraries/Skype/HeroCard.php
2019-01-30 21:45:46 +11:00

36 lines
704 B
PHP
Executable File

<?php
namespace App\Libraries\Skype;
use stdClass;
class HeroCard
{
public function __construct()
{
$this->contentType = 'application/vnd.microsoft.card.hero';
$this->content = new stdClass();
$this->content->buttons = [];
}
public function setTitle($title)
{
$this->content->title = $title;
}
public function setSubitle($subtitle)
{
$this->content->subtitle = $subtitle;
}
public function setText($text)
{
$this->content->text = $text;
}
public function addButton($type, $title, $value, $url = false)
{
$this->content->buttons[] = new ButtonCard($type, $title, $value, $url);
}
}