From 49045777d311074499abc0b2580af8fa4bac536f Mon Sep 17 00:00:00 2001 From: Pavel Date: Tue, 8 Oct 2019 09:12:36 +0300 Subject: [PATCH] [fix] make all getters nullable --- src/Bot/Model/Entity/Bot.php | 24 ++++++------- src/Bot/Model/Entity/Channel/Channel.php | 18 +++++----- .../Model/Entity/Channel/ChannelSettings.php | 14 ++++---- .../Entity/Channel/ChannelSettingsItem.php | 16 ++++----- .../Entity/Channel/ChannelSettingsStatus.php | 4 +-- src/Bot/Model/Entity/Chat/Chat.php | 20 +++++------ src/Bot/Model/Entity/Chat/ChatLastMessage.php | 4 +-- src/Bot/Model/Entity/Chat/ChatMember.php | 12 +++---- src/Bot/Model/Entity/Command.php | 10 +++--- src/Bot/Model/Entity/Customer.php | 30 ++++++++-------- src/Bot/Model/Entity/Dialog.php | 22 ++++++------ src/Bot/Model/Entity/FileMeta.php | 4 +-- src/Bot/Model/Entity/Message/Item.php | 2 +- src/Bot/Model/Entity/Message/Message.php | 36 +++++++++---------- .../Message/MessageOrderPaymentStatus.php | 4 +-- .../Model/Entity/Message/MessageProduct.php | 12 +++---- .../Model/Entity/Message/MessageStatus.php | 4 +-- src/Bot/Model/Entity/Responsible.php | 6 ++-- src/Bot/Model/Entity/User.php | 26 +++++++------- 19 files changed, 134 insertions(+), 134 deletions(-) diff --git a/src/Bot/Model/Entity/Bot.php b/src/Bot/Model/Entity/Bot.php index 5154c2d..44cd5dd 100644 --- a/src/Bot/Model/Entity/Bot.php +++ b/src/Bot/Model/Entity/Bot.php @@ -138,7 +138,7 @@ class Bot implements ModelInterface /** * @return string */ - public function getId(): string + public function getId(): ?string { return $this->id; } @@ -154,7 +154,7 @@ class Bot implements ModelInterface /** * @return \DateTime */ - public function getCreatedAt(): \DateTime + public function getCreatedAt(): ?\DateTime { return $this->createdAt; } @@ -170,7 +170,7 @@ class Bot implements ModelInterface /** * @return \DateTime */ - public function getUpdatedAt(): \DateTime + public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; } @@ -186,7 +186,7 @@ class Bot implements ModelInterface /** * @return string */ - public function getName(): string + public function getName(): ?string { return $this->name; } @@ -202,7 +202,7 @@ class Bot implements ModelInterface /** * @return array */ - public function getEvents(): array + public function getEvents(): ?array { return $this->events; } @@ -218,7 +218,7 @@ class Bot implements ModelInterface /** * @return string */ - public function getClientId(): string + public function getClientId(): ?string { return $this->clientId; } @@ -234,7 +234,7 @@ class Bot implements ModelInterface /** * @return string */ - public function getAvatarUrl(): string + public function getAvatarUrl(): ?string { return $this->avatarUrl; } @@ -250,7 +250,7 @@ class Bot implements ModelInterface /** * @return array */ - public function getRoles(): array + public function getRoles(): ?array { return $this->roles; } @@ -266,7 +266,7 @@ class Bot implements ModelInterface /** * @return string */ - public function getDeactivatedAt(): string + public function getDeactivatedAt(): ?string { return $this->deactivatedAt; } @@ -282,7 +282,7 @@ class Bot implements ModelInterface /** * @return bool */ - public function isActive(): bool + public function isActive(): ?bool { return $this->isActive; } @@ -298,7 +298,7 @@ class Bot implements ModelInterface /** * @return bool */ - public function isSelf(): bool + public function isSelf(): ?bool { return $this->isSelf; } @@ -314,7 +314,7 @@ class Bot implements ModelInterface /** * @return bool */ - public function isSystem(): bool + public function isSystem(): ?bool { return $this->isSystem; } diff --git a/src/Bot/Model/Entity/Channel/Channel.php b/src/Bot/Model/Entity/Channel/Channel.php index 63a5bbf..01bbe20 100644 --- a/src/Bot/Model/Entity/Channel/Channel.php +++ b/src/Bot/Model/Entity/Channel/Channel.php @@ -103,7 +103,7 @@ class Channel implements ModelInterface /** * @return string */ - public function getId(): string + public function getId(): ?string { return $this->id; } @@ -119,7 +119,7 @@ class Channel implements ModelInterface /** * @return \DateTime */ - public function getCreatedAt(): DateTime + public function getCreatedAt(): ?DateTime { return $this->createdAt; } @@ -135,7 +135,7 @@ class Channel implements ModelInterface /** * @return \DateTime */ - public function getUpdatedAt(): DateTime + public function getUpdatedAt(): ?DateTime { return $this->updatedAt; } @@ -151,7 +151,7 @@ class Channel implements ModelInterface /** * @return \DateTime */ - public function getActivatedAt(): DateTime + public function getActivatedAt(): ?DateTime { return $this->activatedAt; } @@ -167,7 +167,7 @@ class Channel implements ModelInterface /** * @return \DateTime */ - public function getDeactivatedAt(): DateTime + public function getDeactivatedAt(): ?DateTime { return $this->deactivatedAt; } @@ -183,7 +183,7 @@ class Channel implements ModelInterface /** * @return bool */ - public function isActive(): bool + public function isActive(): ?bool { return $this->isActive; } @@ -199,7 +199,7 @@ class Channel implements ModelInterface /** * @return ChannelSettings */ - public function getSettings(): ChannelSettings + public function getSettings(): ?ChannelSettings { return $this->settings; } @@ -215,7 +215,7 @@ class Channel implements ModelInterface /** * @return string */ - public function getType(): string + public function getType(): ?string { return $this->type; } @@ -231,7 +231,7 @@ class Channel implements ModelInterface /** * @return string */ - public function getName(): string + public function getName(): ?string { return $this->name; } diff --git a/src/Bot/Model/Entity/Channel/ChannelSettings.php b/src/Bot/Model/Entity/Channel/ChannelSettings.php index 306824c..c9bb3b9 100644 --- a/src/Bot/Model/Entity/Channel/ChannelSettings.php +++ b/src/Bot/Model/Entity/Channel/ChannelSettings.php @@ -92,7 +92,7 @@ class ChannelSettings implements ModelInterface /** * @return ChannelSettingsStatus */ - public function getStatus(): ChannelSettingsStatus + public function getStatus(): ?ChannelSettingsStatus { return $this->status; } @@ -108,7 +108,7 @@ class ChannelSettings implements ModelInterface /** * @return bool */ - public function isSpamAllowed(): bool + public function isSpamAllowed(): ?bool { return $this->spamAllowed; } @@ -124,7 +124,7 @@ class ChannelSettings implements ModelInterface /** * @return ChannelSettingsItem */ - public function getText(): ChannelSettingsItem + public function getText(): ?ChannelSettingsItem { return $this->text; } @@ -140,7 +140,7 @@ class ChannelSettings implements ModelInterface /** * @return ChannelSettingsItem */ - public function getProduct(): ChannelSettingsItem + public function getProduct(): ?ChannelSettingsItem { return $this->product; } @@ -156,7 +156,7 @@ class ChannelSettings implements ModelInterface /** * @return ChannelSettingsItem */ - public function getOrder(): ChannelSettingsItem + public function getOrder(): ?ChannelSettingsItem { return $this->order; } @@ -172,7 +172,7 @@ class ChannelSettings implements ModelInterface /** * @return ChannelSettingsItem */ - public function getImage(): ChannelSettingsItem + public function getImage(): ?ChannelSettingsItem { return $this->image; } @@ -188,7 +188,7 @@ class ChannelSettings implements ModelInterface /** * @return ChannelSettingsItem */ - public function getFile(): ChannelSettingsItem + public function getFile(): ?ChannelSettingsItem { return $this->file; } diff --git a/src/Bot/Model/Entity/Channel/ChannelSettingsItem.php b/src/Bot/Model/Entity/Channel/ChannelSettingsItem.php index 2581ec7..ba74828 100644 --- a/src/Bot/Model/Entity/Channel/ChannelSettingsItem.php +++ b/src/Bot/Model/Entity/Channel/ChannelSettingsItem.php @@ -103,7 +103,7 @@ class ChannelSettingsItem implements ModelInterface /** * @return string */ - public function getCreating(): string + public function getCreating(): ?string { return $this->creating; } @@ -119,7 +119,7 @@ class ChannelSettingsItem implements ModelInterface /** * @return string */ - public function getEditing(): string + public function getEditing(): ?string { return $this->editing; } @@ -135,7 +135,7 @@ class ChannelSettingsItem implements ModelInterface /** * @return string */ - public function getQuoting(): string + public function getQuoting(): ?string { return $this->quoting; } @@ -151,7 +151,7 @@ class ChannelSettingsItem implements ModelInterface /** * @return string */ - public function getDeleting(): string + public function getDeleting(): ?string { return $this->deleting; } @@ -167,7 +167,7 @@ class ChannelSettingsItem implements ModelInterface /** * @return string */ - public function getDelivered(): string + public function getDelivered(): ?string { return $this->delivered; } @@ -183,7 +183,7 @@ class ChannelSettingsItem implements ModelInterface /** * @return int */ - public function getMaxCharsCount(): int + public function getMaxCharsCount(): ?int { return $this->maxCharsCount; } @@ -199,7 +199,7 @@ class ChannelSettingsItem implements ModelInterface /** * @return int */ - public function getMaxItemsCount(): int + public function getMaxItemsCount(): ?int { return $this->maxItemsCount; } @@ -215,7 +215,7 @@ class ChannelSettingsItem implements ModelInterface /** * @return int */ - public function getNoteMaxCharsCount(): int + public function getNoteMaxCharsCount(): ?int { return $this->noteMaxCharsCount; } diff --git a/src/Bot/Model/Entity/Channel/ChannelSettingsStatus.php b/src/Bot/Model/Entity/Channel/ChannelSettingsStatus.php index f82dd38..bc09fbb 100644 --- a/src/Bot/Model/Entity/Channel/ChannelSettingsStatus.php +++ b/src/Bot/Model/Entity/Channel/ChannelSettingsStatus.php @@ -49,7 +49,7 @@ class ChannelSettingsStatus implements ModelInterface /** * @return string */ - public function getDelivered(): string + public function getDelivered(): ?string { return $this->delivered; } @@ -65,7 +65,7 @@ class ChannelSettingsStatus implements ModelInterface /** * @return string */ - public function getRead(): string + public function getRead(): ?string { return $this->read; } diff --git a/src/Bot/Model/Entity/Chat/Chat.php b/src/Bot/Model/Entity/Chat/Chat.php index 35abaaa..ddd679d 100644 --- a/src/Bot/Model/Entity/Chat/Chat.php +++ b/src/Bot/Model/Entity/Chat/Chat.php @@ -138,7 +138,7 @@ class Chat implements ModelInterface /** * @return \DateTime */ - public function getCreatedAt(): \DateTime + public function getCreatedAt(): ?\DateTime { return $this->createdAt; } @@ -154,7 +154,7 @@ class Chat implements ModelInterface /** * @return \DateTime */ - public function getUpdatedAt(): \DateTime + public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; } @@ -170,7 +170,7 @@ class Chat implements ModelInterface /** * @return string */ - public function getAvatar(): string + public function getAvatar(): ?string { return $this->avatar; } @@ -186,7 +186,7 @@ class Chat implements ModelInterface /** * @return string */ - public function getName(): string + public function getName(): ?string { return $this->name; } @@ -202,7 +202,7 @@ class Chat implements ModelInterface /** * @return Channel */ - public function getChannel(): Channel + public function getChannel(): ?Channel { return $this->channel; } @@ -218,7 +218,7 @@ class Chat implements ModelInterface /** * @return array */ - public function getMembers(): array + public function getMembers(): ?array { return $this->members; } @@ -234,7 +234,7 @@ class Chat implements ModelInterface /** * @return Customer */ - public function getCustomer(): Customer + public function getCustomer(): ?Customer { return $this->customer; } @@ -250,7 +250,7 @@ class Chat implements ModelInterface /** * @return int */ - public function getAuthorId(): int + public function getAuthorId(): ?int { return $this->authorId; } @@ -266,7 +266,7 @@ class Chat implements ModelInterface /** * @return ChatLastMessage */ - public function getLastMessage(): ChatLastMessage + public function getLastMessage(): ?ChatLastMessage { return $this->lastMessage; } @@ -282,7 +282,7 @@ class Chat implements ModelInterface /** * @return \DateTime */ - public function getLastActivity(): \DateTime + public function getLastActivity(): ?\DateTime { return $this->lastActivity; } diff --git a/src/Bot/Model/Entity/Chat/ChatLastMessage.php b/src/Bot/Model/Entity/Chat/ChatLastMessage.php index 5dbba92..8986bc0 100644 --- a/src/Bot/Model/Entity/Chat/ChatLastMessage.php +++ b/src/Bot/Model/Entity/Chat/ChatLastMessage.php @@ -74,7 +74,7 @@ class ChatLastMessage implements ModelInterface /** * @return \DateTime */ - public function getTime(): \DateTime + public function getTime(): ?\DateTime { return $this->time; } @@ -90,7 +90,7 @@ class ChatLastMessage implements ModelInterface /** * @return string */ - public function getType(): string + public function getType(): ?string { return $this->type; } diff --git a/src/Bot/Model/Entity/Chat/ChatMember.php b/src/Bot/Model/Entity/Chat/ChatMember.php index bb0ffe4..ffe7f5e 100644 --- a/src/Bot/Model/Entity/Chat/ChatMember.php +++ b/src/Bot/Model/Entity/Chat/ChatMember.php @@ -108,7 +108,7 @@ class ChatMember implements ModelInterface /** * @return \DateTime */ - public function getCreatedAt(): \DateTime + public function getCreatedAt(): ?\DateTime { return $this->createdAt; } @@ -124,7 +124,7 @@ class ChatMember implements ModelInterface /** * @return \DateTime */ - public function getUpdatedAt(): \DateTime + public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; } @@ -140,7 +140,7 @@ class ChatMember implements ModelInterface /** * @return int */ - public function getChatId(): int + public function getChatId(): ?int { return $this->chatId; } @@ -156,7 +156,7 @@ class ChatMember implements ModelInterface /** * @return int */ - public function getUserId(): int + public function getUserId(): ?int { return $this->userId; } @@ -172,7 +172,7 @@ class ChatMember implements ModelInterface /** * @return bool */ - public function isAuthor(): bool + public function isAuthor(): ?bool { return $this->isAuthor; } @@ -188,7 +188,7 @@ class ChatMember implements ModelInterface /** * @return string */ - public function getState(): string + public function getState(): ?string { return $this->state; } diff --git a/src/Bot/Model/Entity/Command.php b/src/Bot/Model/Entity/Command.php index c251a7c..d66db12 100644 --- a/src/Bot/Model/Entity/Command.php +++ b/src/Bot/Model/Entity/Command.php @@ -74,7 +74,7 @@ class Command implements ModelInterface /** * @return string */ - public function getId(): string + public function getId(): ?string { return $this->id; } @@ -90,7 +90,7 @@ class Command implements ModelInterface /** * @return \DateTime */ - public function getCreatedAt(): \DateTime + public function getCreatedAt(): ?\DateTime { return $this->createdAt; } @@ -106,7 +106,7 @@ class Command implements ModelInterface /** * @return \DateTime */ - public function getUpdatedAt(): \DateTime + public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; } @@ -122,7 +122,7 @@ class Command implements ModelInterface /** * @return string */ - public function getName(): string + public function getName(): ?string { return $this->name; } @@ -138,7 +138,7 @@ class Command implements ModelInterface /** * @return string */ - public function getDescription(): string + public function getDescription(): ?string { return $this->description; } diff --git a/src/Bot/Model/Entity/Customer.php b/src/Bot/Model/Entity/Customer.php index 9151a06..b856801 100644 --- a/src/Bot/Model/Entity/Customer.php +++ b/src/Bot/Model/Entity/Customer.php @@ -176,7 +176,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getId(): string + public function getId(): ?string { return $this->id; } @@ -192,7 +192,7 @@ class Customer implements ModelInterface /** * @return \DateTime */ - public function getCreatedAt(): \DateTime + public function getCreatedAt(): ?\DateTime { return $this->createdAt; } @@ -208,7 +208,7 @@ class Customer implements ModelInterface /** * @return \DateTime */ - public function getUpdatedAt(): \DateTime + public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; } @@ -224,7 +224,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getExternalId(): string + public function getExternalId(): ?string { return $this->externalId; } @@ -240,7 +240,7 @@ class Customer implements ModelInterface /** * @return int */ - public function getChannelId(): int + public function getChannelId(): ?int { return $this->channelId; } @@ -256,7 +256,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getUsername(): string + public function getUsername(): ?string { return $this->username; } @@ -272,7 +272,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getFirstName(): string + public function getFirstName(): ?string { return $this->firstName; } @@ -288,7 +288,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getLastName(): string + public function getLastName(): ?string { return $this->lastName; } @@ -304,7 +304,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getAvatarUrl(): string + public function getAvatarUrl(): ?string { return $this->avatarUrl; } @@ -320,7 +320,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getProfileUrl(): string + public function getProfileUrl(): ?string { return $this->profileUrl; } @@ -336,7 +336,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getRevokedAt(): string + public function getRevokedAt(): ?string { return $this->revokedAt; } @@ -352,7 +352,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getCountry(): string + public function getCountry(): ?string { return $this->country; } @@ -368,7 +368,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getLanguage(): string + public function getLanguage(): ?string { return $this->language; } @@ -384,7 +384,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getPhone(): string + public function getPhone(): ?string { return $this->phone; } @@ -400,7 +400,7 @@ class Customer implements ModelInterface /** * @return string */ - public function getEmail(): string + public function getEmail(): ?string { return $this->email; } diff --git a/src/Bot/Model/Entity/Dialog.php b/src/Bot/Model/Entity/Dialog.php index 679e518..f0679b6 100644 --- a/src/Bot/Model/Entity/Dialog.php +++ b/src/Bot/Model/Entity/Dialog.php @@ -128,7 +128,7 @@ class Dialog implements ModelInterface /** * @return string */ - public function getId(): string + public function getId(): ?string { return $this->id; } @@ -144,7 +144,7 @@ class Dialog implements ModelInterface /** * @return \DateTime */ - public function getCreatedAt(): \DateTime + public function getCreatedAt(): ?\DateTime { return $this->createdAt; } @@ -160,7 +160,7 @@ class Dialog implements ModelInterface /** * @return \DateTime */ - public function getUpdatedAt(): \DateTime + public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; } @@ -176,7 +176,7 @@ class Dialog implements ModelInterface /** * @return int */ - public function getBotId(): int + public function getBotId(): ?int { return $this->botId; } @@ -192,7 +192,7 @@ class Dialog implements ModelInterface /** * @return int */ - public function getChatId(): int + public function getChatId(): ?int { return $this->chatId; } @@ -208,7 +208,7 @@ class Dialog implements ModelInterface /** * @return int */ - public function getBeginMessageId(): int + public function getBeginMessageId(): ?int { return $this->beginMessageId; } @@ -224,7 +224,7 @@ class Dialog implements ModelInterface /** * @return int */ - public function getEndingMessageId(): int + public function getEndingMessageId(): ?int { return $this->endingMessageId; } @@ -240,7 +240,7 @@ class Dialog implements ModelInterface /** * @return \DateTime */ - public function getClosedAt(): \DateTime + public function getClosedAt(): ?\DateTime { return $this->closedAt; } @@ -256,7 +256,7 @@ class Dialog implements ModelInterface /** * @return bool */ - public function isAssigned(): bool + public function isAssigned(): ?bool { return $this->isAssigned; } @@ -272,7 +272,7 @@ class Dialog implements ModelInterface /** * @return Responsible */ - public function getResponsible(): Responsible + public function getResponsible(): ?Responsible { return $this->responsible; } @@ -288,7 +288,7 @@ class Dialog implements ModelInterface /** * @return bool */ - public function isActive(): bool + public function isActive(): ?bool { return $this->isActive; } diff --git a/src/Bot/Model/Entity/FileMeta.php b/src/Bot/Model/Entity/FileMeta.php index 3fe81f5..8ee3a88 100644 --- a/src/Bot/Model/Entity/FileMeta.php +++ b/src/Bot/Model/Entity/FileMeta.php @@ -49,7 +49,7 @@ class FileMeta implements ModelInterface /** * @return int */ - public function getHeight(): int + public function getHeight(): ?int { return $this->height; } @@ -65,7 +65,7 @@ class FileMeta implements ModelInterface /** * @return int */ - public function getWidth(): int + public function getWidth(): ?int { return $this->width; } diff --git a/src/Bot/Model/Entity/Message/Item.php b/src/Bot/Model/Entity/Message/Item.php index 48dbf32..52cb46f 100644 --- a/src/Bot/Model/Entity/Message/Item.php +++ b/src/Bot/Model/Entity/Message/Item.php @@ -74,7 +74,7 @@ class Item implements ModelInterface /** * @return int */ - public function getSize(): int + public function getSize(): ?int { return $this->size; } diff --git a/src/Bot/Model/Entity/Message/Message.php b/src/Bot/Model/Entity/Message/Message.php index 9426551..40d972f 100644 --- a/src/Bot/Model/Entity/Message/Message.php +++ b/src/Bot/Model/Entity/Message/Message.php @@ -227,7 +227,7 @@ class Message implements ModelInterface /** * @return \DateTime */ - public function getCreatedAt(): \DateTime + public function getCreatedAt(): ?\DateTime { return $this->createdAt; } @@ -243,7 +243,7 @@ class Message implements ModelInterface /** * @return \DateTime */ - public function getUpdatedAt(): \DateTime + public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; } @@ -275,7 +275,7 @@ class Message implements ModelInterface /** * @return array */ - public function getItems(): array + public function getItems(): ?array { return $this->items; } @@ -291,7 +291,7 @@ class Message implements ModelInterface /** * @return User */ - public function getFrom(): User + public function getFrom(): ?User { return $this->from; } @@ -307,7 +307,7 @@ class Message implements ModelInterface /** * @return \DateTime */ - public function getTime(): \DateTime + public function getTime(): ?\DateTime { return $this->time; } @@ -323,7 +323,7 @@ class Message implements ModelInterface /** * @return string */ - public function getType(): string + public function getType(): ?string { return $this->type; } @@ -339,7 +339,7 @@ class Message implements ModelInterface /** * @return string */ - public function getScope(): string + public function getScope(): ?string { return $this->scope; } @@ -355,7 +355,7 @@ class Message implements ModelInterface /** * @return int */ - public function getChatId(): int + public function getChatId(): ?int { return $this->chatId; } @@ -371,7 +371,7 @@ class Message implements ModelInterface /** * @return string */ - public function getContent(): string + public function getContent(): ?string { return $this->content; } @@ -387,7 +387,7 @@ class Message implements ModelInterface /** * @return bool */ - public function isRead(): bool + public function isRead(): ?bool { return $this->isRead; } @@ -403,7 +403,7 @@ class Message implements ModelInterface /** * @return bool */ - public function isEdit(): bool + public function isEdit(): ?bool { return $this->isEdit; } @@ -419,7 +419,7 @@ class Message implements ModelInterface /** * @return string */ - public function getStatus(): string + public function getStatus(): ?string { return $this->status; } @@ -435,7 +435,7 @@ class Message implements ModelInterface /** * @return string */ - public function getAction(): string + public function getAction(): ?string { return $this->action; } @@ -451,7 +451,7 @@ class Message implements ModelInterface /** * @return Dialog */ - public function getDialog(): Dialog + public function getDialog(): ?Dialog { return $this->dialog; } @@ -467,7 +467,7 @@ class Message implements ModelInterface /** * @return int */ - public function getChannelId(): int + public function getChannelId(): ?int { return $this->channelId; } @@ -483,7 +483,7 @@ class Message implements ModelInterface /** * @return \DateTime */ - public function getChannelSentAt(): \DateTime + public function getChannelSentAt(): ?\DateTime { return $this->channelSentAt; } @@ -499,7 +499,7 @@ class Message implements ModelInterface /** * @return MessageOrder */ - public function getOrder(): MessageOrder + public function getOrder(): ?MessageOrder { return $this->order; } @@ -515,7 +515,7 @@ class Message implements ModelInterface /** * @return MessageProduct */ - public function getProduct(): MessageProduct + public function getProduct(): ?MessageProduct { return $this->product; } diff --git a/src/Bot/Model/Entity/Message/MessageOrderPaymentStatus.php b/src/Bot/Model/Entity/Message/MessageOrderPaymentStatus.php index 2efcb4d..dfe106e 100644 --- a/src/Bot/Model/Entity/Message/MessageOrderPaymentStatus.php +++ b/src/Bot/Model/Entity/Message/MessageOrderPaymentStatus.php @@ -49,7 +49,7 @@ class MessageOrderPaymentStatus implements ModelInterface /** * @return string */ - public function getName(): string + public function getName(): ?string { return $this->name; } @@ -65,7 +65,7 @@ class MessageOrderPaymentStatus implements ModelInterface /** * @return bool */ - public function getPayed(): bool + public function getPayed(): ?bool { return $this->payed; } diff --git a/src/Bot/Model/Entity/Message/MessageProduct.php b/src/Bot/Model/Entity/Message/MessageProduct.php index 717c554..e7e648c 100644 --- a/src/Bot/Model/Entity/Message/MessageProduct.php +++ b/src/Bot/Model/Entity/Message/MessageProduct.php @@ -110,7 +110,7 @@ class MessageProduct implements ModelInterface /** * @return string */ - public function getName(): string + public function getName(): ?string { return $this->name; } @@ -126,7 +126,7 @@ class MessageProduct implements ModelInterface /** * @return string */ - public function getArticle(): string + public function getArticle(): ?string { return $this->article; } @@ -142,7 +142,7 @@ class MessageProduct implements ModelInterface /** * @return string */ - public function getUrl(): string + public function getUrl(): ?string { return $this->url; } @@ -158,7 +158,7 @@ class MessageProduct implements ModelInterface /** * @return string */ - public function getImg(): string + public function getImg(): ?string { return $this->img; } @@ -174,7 +174,7 @@ class MessageProduct implements ModelInterface /** * @return MessageCost */ - public function getCost(): MessageCost + public function getCost(): ?MessageCost { return $this->cost; } @@ -190,7 +190,7 @@ class MessageProduct implements ModelInterface /** * @return MessageQuantity */ - public function getQuantity(): MessageQuantity + public function getQuantity(): ?MessageQuantity { return $this->quantity; } diff --git a/src/Bot/Model/Entity/Message/MessageStatus.php b/src/Bot/Model/Entity/Message/MessageStatus.php index 05e293f..95a3048 100644 --- a/src/Bot/Model/Entity/Message/MessageStatus.php +++ b/src/Bot/Model/Entity/Message/MessageStatus.php @@ -49,7 +49,7 @@ class MessageStatus implements ModelInterface /** * @return string */ - public function getCode(): string + public function getCode(): ?string { return $this->code; } @@ -65,7 +65,7 @@ class MessageStatus implements ModelInterface /** * @return string */ - public function getName(): string + public function getName(): ?string { return $this->name; } diff --git a/src/Bot/Model/Entity/Responsible.php b/src/Bot/Model/Entity/Responsible.php index 4069368..3c273b3 100644 --- a/src/Bot/Model/Entity/Responsible.php +++ b/src/Bot/Model/Entity/Responsible.php @@ -58,7 +58,7 @@ class Responsible implements ModelInterface /** * @return string */ - public function getAssignedAt(): string + public function getAssignedAt(): ?string { return $this->assignedAt; } @@ -74,7 +74,7 @@ class Responsible implements ModelInterface /** * @return int */ - public function getId(): int + public function getId(): ?int { return $this->id; } @@ -90,7 +90,7 @@ class Responsible implements ModelInterface /** * @return string */ - public function getType(): string + public function getType(): ?string { return $this->type; } diff --git a/src/Bot/Model/Entity/User.php b/src/Bot/Model/Entity/User.php index f80d8ba..8ed189c 100644 --- a/src/Bot/Model/Entity/User.php +++ b/src/Bot/Model/Entity/User.php @@ -151,7 +151,7 @@ class User implements ModelInterface /** * @return string */ - public function getId(): string + public function getId(): ?string { return $this->id; } @@ -167,7 +167,7 @@ class User implements ModelInterface /** * @return \DateTime */ - public function getCreatedAt(): \DateTime + public function getCreatedAt(): ?\DateTime { return $this->createdAt; } @@ -183,7 +183,7 @@ class User implements ModelInterface /** * @return \DateTime */ - public function getUpdatedAt(): \DateTime + public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; } @@ -199,7 +199,7 @@ class User implements ModelInterface /** * @return string */ - public function getExternalId(): string + public function getExternalId(): ?string { return $this->externalId; } @@ -215,7 +215,7 @@ class User implements ModelInterface /** * @return string */ - public function getType(): string + public function getType(): ?string { return $this->type; } @@ -231,7 +231,7 @@ class User implements ModelInterface /** * @return string */ - public function getAvatar(): string + public function getAvatar(): ?string { return $this->avatar; } @@ -247,7 +247,7 @@ class User implements ModelInterface /** * @return string */ - public function getName(): string + public function getName(): ?string { return $this->name; } @@ -263,7 +263,7 @@ class User implements ModelInterface /** * @return string */ - public function getUsername(): string + public function getUsername(): ?string { return $this->username; } @@ -279,7 +279,7 @@ class User implements ModelInterface /** * @return string */ - public function getFirstName(): string + public function getFirstName(): ?string { return $this->firstName; } @@ -295,7 +295,7 @@ class User implements ModelInterface /** * @return string */ - public function getLastName(): string + public function getLastName(): ?string { return $this->lastName; } @@ -311,7 +311,7 @@ class User implements ModelInterface /** * @return bool */ - public function isActive(): bool + public function isActive(): ?bool { return $this->isActive; } @@ -327,7 +327,7 @@ class User implements ModelInterface /** * @return bool */ - public function isOnline(): bool + public function isOnline(): ?bool { return $this->isOnline; } @@ -343,7 +343,7 @@ class User implements ModelInterface /** * @return \DateTime */ - public function getRevokedAt(): \DateTime + public function getRevokedAt(): ?\DateTime { return $this->revokedAt; }