src/Slack/AbstractSlack.php
<?php
/**
* @package bdk\slack
* @author Brad Kent <bkfake-github@yahoo.com>
* @license http://opensource.org/licenses/MIT MIT
* @copyright 2023-2025 Brad Kent
*/
namespace bdk\Slack;
use bdk\CurlHttpMessage\Client;
use Psr\Http\Message\ResponseInterface;
/**
* Base class for SlackApi & SlackWebhook
*/
abstract class AbstractSlack
{
/** @var Client */
protected $client;
/** @var ResponseInterface|null */
protected $lastResponse;
/**
* Constructor
*/
public function __construct()
{
$this->client = new Client();
}
/**
* @return Client
*/
public function getClient()
{
return $this->client;
}
/**
* @return ResponseInterface|null
*/
public function getLastResponse()
{
return $this->lastResponse;
}
}