1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 23:22:52 +01:00
invoiceninja/app/Libraries/Skype/HeroCard.php

27 lines
536 B
PHP
Raw Normal View History

2016-08-10 14:57:34 +02:00
<?php namespace App\Libraries\Skype;
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 addButton($button)
{
$this->content->buttons[] = $button;
}
}