2021-08-06 02:22:22 +00:00
|
|
|
<?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-06 02:22:22 +00:00
|
|
|
{
|
2021-08-10 03:48:59 +00:00
|
|
|
return $this->_data->count();
|
2021-08-06 02:22:22 +00:00
|
|
|
}
|
|
|
|
|
2021-08-10 03:48:59 +00:00
|
|
|
public function jsonSerialize()
|
2021-08-06 02:22:22 +00:00
|
|
|
{
|
2021-08-10 03:48:59 +00:00
|
|
|
return $this->_data;
|
2021-08-06 02:22:22 +00:00
|
|
|
}
|
|
|
|
}
|