1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Libraries/Skype/HeroCard.php
2017-01-30 21:40:43 +02:00

36 lines
704 B
PHP

<?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);
}
}