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;
use Kerox\Messenger\Model\Persona;
class PersonaResponse extends AbstractResponse
{
/**
* @var Persona
*/
protected $persona;
* @var bool
protected $success;
* @param array $response
protected function parseResponse(array $response): void
$this->persona = new Persona($response);
$this->success = $response['success'] ?? null;
}
public function getPersona(): Persona
return $this->persona;
* @return string|null
public function getId(): ?string
return $this->persona->getId();
* @return bool
public function isSuccess(): bool
return $this->success === true;