for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FondBot\Channels;
class Chat
{
public const TYPE_PRIVATE = 'private';
public const TYPE_GROUP = 'group';
private $id;
private $title;
private $type;
public function __construct(string $id, string $title = null, string $type = self::TYPE_PRIVATE)
$this->id = $id;
$this->title = $title;
$this->type = $type;
}
public function getId(): string
return $this->id;
public function getTitle(): ?string
return $this->title;
public function getType(): string
return $this->type;