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

31 lines
539 B
PHP
Executable File

<?php
namespace App\Libraries\Skype;
class SkypeResponse
{
public function __construct($type)
{
$this->type = $type;
$this->attachments = [];
}
public static function message($message)
{
$instance = new self('message/text');
$instance->setText($message);
return json_encode($instance);
}
public function setText($text)
{
$this->text = $text;
}
public function addAttachment($attachment)
{
$this->attachments[] = $attachment;
}
}