for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Kerox\Messenger\Response;
class WebhookResponse extends AbstractResponse
{
private const SUCCESS = 'success';
/**
* @var bool
*/
protected $success;
protected function parseResponse(array $response): void
$this->success = $response[self::SUCCESS] ?? false;
}
public function isSuccess(): bool
return $this->success === true;