diff --git a/src/Bot/Model/Entity/Chat/Chat.php b/src/Bot/Model/Entity/Chat/Chat.php index 8058412..35abaaa 100644 --- a/src/Bot/Model/Entity/Chat/Chat.php +++ b/src/Bot/Model/Entity/Chat/Chat.php @@ -120,9 +120,9 @@ class Chat implements ModelInterface private $lastActivity; /** - * @return string + * @return string|null */ - public function getId(): string + public function getId(): ?string { return $this->id; } diff --git a/src/Bot/Model/Entity/Chat/ChatLastMessage.php b/src/Bot/Model/Entity/Chat/ChatLastMessage.php index 9b1f439..5dbba92 100644 --- a/src/Bot/Model/Entity/Chat/ChatLastMessage.php +++ b/src/Bot/Model/Entity/Chat/ChatLastMessage.php @@ -56,9 +56,9 @@ class ChatLastMessage implements ModelInterface private $type; /** - * @return int + * @return int|null */ - public function getId(): int + public function getId(): ?int { return $this->id; } diff --git a/src/Bot/Model/Entity/Chat/ChatMember.php b/src/Bot/Model/Entity/Chat/ChatMember.php index 4d742ac..bb0ffe4 100644 --- a/src/Bot/Model/Entity/Chat/ChatMember.php +++ b/src/Bot/Model/Entity/Chat/ChatMember.php @@ -90,9 +90,9 @@ class ChatMember implements ModelInterface private $state; /** - * @return string + * @return string|null */ - public function getId(): string + public function getId(): ?string { return $this->id; } diff --git a/src/Bot/Model/Entity/Message/Item.php b/src/Bot/Model/Entity/Message/Item.php index 1859410..48dbf32 100644 --- a/src/Bot/Model/Entity/Message/Item.php +++ b/src/Bot/Model/Entity/Message/Item.php @@ -58,7 +58,7 @@ class Item implements ModelInterface /** * @return string */ - public function getId() + public function getId(): ?string { return $this->id; } diff --git a/src/Bot/Model/Entity/Message/Message.php b/src/Bot/Model/Entity/Message/Message.php index 0f56c52..9426551 100644 --- a/src/Bot/Model/Entity/Message/Message.php +++ b/src/Bot/Model/Entity/Message/Message.php @@ -209,9 +209,9 @@ class Message implements ModelInterface private $product; /** - * @return string + * @return string|null */ - public function getId(): string + public function getId(): ?string { return $this->id; } @@ -257,9 +257,9 @@ class Message implements ModelInterface } /** - * @return string + * @return string|null */ - public function getActions(): string + public function getActions(): ?string { return $this->actions; } diff --git a/src/Bot/Model/Entity/Message/MessageProduct.php b/src/Bot/Model/Entity/Message/MessageProduct.php index a4d0674..717c554 100644 --- a/src/Bot/Model/Entity/Message/MessageProduct.php +++ b/src/Bot/Model/Entity/Message/MessageProduct.php @@ -92,9 +92,9 @@ class MessageProduct implements ModelInterface private $quantity; /** - * @return int + * @return int|null */ - public function getId(): int + public function getId(): ?int { return $this->id; } diff --git a/src/Bot/Model/Request/CommonFields.php b/src/Bot/Model/Request/CommonFields.php index 35e9d7e..7fc5b31 100644 --- a/src/Bot/Model/Request/CommonFields.php +++ b/src/Bot/Model/Request/CommonFields.php @@ -55,9 +55,9 @@ trait CommonFields private $until; /** - * @return int + * @return int|null */ - public function getId() + public function getId(): ?int { return $this->id; } diff --git a/src/Bot/Model/Request/MessageEditRequest.php b/src/Bot/Model/Request/MessageEditRequest.php index ae20519..4858d85 100644 --- a/src/Bot/Model/Request/MessageEditRequest.php +++ b/src/Bot/Model/Request/MessageEditRequest.php @@ -47,9 +47,9 @@ class MessageEditRequest implements ModelInterface private $content; /** - * @return int + * @return int|null */ - public function getId() + public function getId(): ?int { return $this->id; } diff --git a/src/Bot/Model/Response/AssignResponse.php b/src/Bot/Model/Response/AssignResponse.php index ebaa040..6b7b897 100644 --- a/src/Bot/Model/Response/AssignResponse.php +++ b/src/Bot/Model/Response/AssignResponse.php @@ -68,9 +68,9 @@ class AssignResponse implements ModelInterface private $responsible; /** - * @return bool + * @return bool|null */ - public function getIsReassign(): bool + public function getIsReassign(): ?bool { return $this->isReassign; } @@ -84,9 +84,9 @@ class AssignResponse implements ModelInterface } /** - * @return int + * @return int|null */ - public function getLeftManagerId(): int + public function getLeftManagerId(): ?int { return $this->leftManagerId; } @@ -100,9 +100,9 @@ class AssignResponse implements ModelInterface } /** - * @return Responsible + * @return Responsible|null */ - public function getPreviousResponsible(): Responsible + public function getPreviousResponsible(): ?Responsible { return $this->previousResponsible; } @@ -116,9 +116,9 @@ class AssignResponse implements ModelInterface } /** - * @return Responsible + * @return Responsible|null */ - public function getResponsible(): Responsible + public function getResponsible(): ?Responsible { return $this->responsible; } diff --git a/src/Bot/Model/Response/CommonFields.php b/src/Bot/Model/Response/CommonFields.php index 162f5d9..ce3654c 100644 --- a/src/Bot/Model/Response/CommonFields.php +++ b/src/Bot/Model/Response/CommonFields.php @@ -44,9 +44,9 @@ trait CommonFields private $statusCode; /** - * @return array + * @return array|null */ - public function getErrors(): array + public function getErrors(): ?array { return empty($this->errors) ? [] : $this->errors; } @@ -60,9 +60,9 @@ trait CommonFields } /** - * @return int + * @return int|null */ - public function getStatusCode(): int + public function getStatusCode(): ?int { return $this->statusCode; } diff --git a/src/Bot/Model/Response/FullFileResponse.php b/src/Bot/Model/Response/FullFileResponse.php index 877ae19..046a0cb 100644 --- a/src/Bot/Model/Response/FullFileResponse.php +++ b/src/Bot/Model/Response/FullFileResponse.php @@ -67,9 +67,9 @@ class FullFileResponse implements ModelInterface private $url; /** - * @return string + * @return string|null */ - public function getId(): string + public function getId(): ?string { return $this->id; } @@ -83,9 +83,9 @@ class FullFileResponse implements ModelInterface } /** - * @return int + * @return int|null */ - public function getSize(): int + public function getSize(): ?int { return $this->size; } @@ -99,9 +99,9 @@ class FullFileResponse implements ModelInterface } /** - * @return string + * @return string|null */ - public function getType(): string + public function getType(): ?string { return $this->type; } @@ -115,9 +115,9 @@ class FullFileResponse implements ModelInterface } /** - * @return string + * @return string|null */ - public function getUrl(): string + public function getUrl(): ?string { return $this->url; } diff --git a/src/Bot/Model/Response/MessageSendResponse.php b/src/Bot/Model/Response/MessageSendResponse.php index 2e361db..34ac5ea 100644 --- a/src/Bot/Model/Response/MessageSendResponse.php +++ b/src/Bot/Model/Response/MessageSendResponse.php @@ -49,9 +49,9 @@ class MessageSendResponse implements ModelInterface private $time; /** - * @return int + * @return int|null */ - public function getMessageId(): int + public function getMessageId(): ?int { return $this->messageId; } @@ -65,9 +65,9 @@ class MessageSendResponse implements ModelInterface } /** - * @return string + * @return string|null */ - public function getTime(): string + public function getTime(): ?string { return $this->time; } diff --git a/src/Bot/Model/Response/UploadFileResponse.php b/src/Bot/Model/Response/UploadFileResponse.php index 1866465..c439bd0 100644 --- a/src/Bot/Model/Response/UploadFileResponse.php +++ b/src/Bot/Model/Response/UploadFileResponse.php @@ -104,9 +104,9 @@ class UploadFileResponse implements ModelInterface private $type; /** - * @return string + * @return string|null */ - public function getCreatedAt(): string + public function getCreatedAt(): ?string { return $this->createdAt; } @@ -120,9 +120,9 @@ class UploadFileResponse implements ModelInterface } /** - * @return string + * @return string|null */ - public function getHash(): string + public function getHash(): ?string { return $this->hash; } @@ -136,9 +136,9 @@ class UploadFileResponse implements ModelInterface } /** - * @return string + * @return string|null */ - public function getId(): string + public function getId(): ?string { return $this->id; } @@ -152,9 +152,9 @@ class UploadFileResponse implements ModelInterface } /** - * @return FileMeta + * @return FileMeta|null */ - public function getMeta(): FileMeta + public function getMeta(): ?FileMeta { return $this->meta; } @@ -168,9 +168,9 @@ class UploadFileResponse implements ModelInterface } /** - * @return string + * @return string|null */ - public function getMimeType(): string + public function getMimeType(): ?string { return $this->mimeType; } @@ -184,9 +184,9 @@ class UploadFileResponse implements ModelInterface } /** - * @return int + * @return int|null */ - public function getSize(): int + public function getSize(): ?int { return $this->size; } @@ -200,9 +200,9 @@ class UploadFileResponse implements ModelInterface } /** - * @return string + * @return string|null */ - public function getSourceUrl(): string + public function getSourceUrl(): ?string { return $this->sourceUrl; } @@ -216,9 +216,9 @@ class UploadFileResponse implements ModelInterface } /** - * @return string + * @return string|null */ - public function getType(): string + public function getType(): ?string { return $this->type; }