| 1 | <?php |
||
| 11 | class SendRequest implements Command |
||
| 12 | { |
||
| 13 | private $chat; |
||
| 14 | private $recipient; |
||
| 15 | private $endpoint; |
||
| 16 | private $parameters; |
||
| 17 | |||
| 18 | 2 | public function __construct(Chat $chat, User $recipient, string $endpoint, array $parameters = []) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Get name. |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 1 | public function getName(): string |
|
| 35 | |||
| 36 | 1 | public function getChat(): Chat |
|
| 40 | |||
| 41 | 1 | public function getRecipient(): User |
|
| 45 | |||
| 46 | 1 | public function getEndpoint(): string |
|
| 50 | |||
| 51 | 1 | public function getParameters(): array |
|
| 55 | } |
||
| 56 |