mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 23:22:52 +01:00
27 lines
536 B
PHP
27 lines
536 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|