for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LeoCarmo\TelegramBot\Helpers;
class Response
{
/**
* @var string
*/
private $status;
private $message;
* Response constructor
*
* @param $message
private function __construct($message)
$this->message = $message;
}
* @return Response
public static function message($message)
return new self($message);
* @param string $status
* @return $this
public function status(string $status)
$this->status = $status;
return $this;
* @return array
public function get()
return array_filter(get_object_vars($this));