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 NlpResponse extends AbstractResponse
{
private const SUCCESS = 'success';
/**
* @var bool
*/
protected $success;
* @param array $response
protected function parseResponse(array $response): void
$this->success = $response[self::SUCCESS] ?? false;
}
* @return bool
public function isSuccess(): bool
return $this->success === true;