slack/src/BlockKit.php

31 lines
403 B
PHP
Raw Normal View History

<?php
namespace Slack;
use Illuminate\Support\Collection;
/**
* Class BlockKit - Slack Blockit Objects
*
* @package Slack
*/
class BlockKit implements \JsonSerializable
{
protected Collection $_data;
public function __construct()
{
$this->_data = collect();
}
2021-08-10 03:48:59 +00:00
public function count()
{
2021-08-10 03:48:59 +00:00
return $this->_data->count();
}
2021-08-10 03:48:59 +00:00
public function jsonSerialize()
{
2021-08-10 03:48:59 +00:00
return $this->_data;
}
}