Updated BotShortDescription

This commit is contained in:
netkas 2024-10-04 12:08:57 -04:00
parent 16b4ba587b
commit d2f283afdd

View file

@ -8,10 +8,7 @@
class BotShortDescription implements ObjectTypeInterface class BotShortDescription implements ObjectTypeInterface
{ {
/** private string $short_description;
* @var string
*/
private $short_description;
/** /**
* The bot's short description * The bot's short description
@ -24,9 +21,7 @@
} }
/** /**
* Returns an array representation of the object * @inheritDoc
*
* @return array
*/ */
public function toArray(): array public function toArray(): array
{ {
@ -36,12 +31,9 @@
} }
/** /**
* Constructs object from an array representation * @inheritDoc
*
* @param array $data
* @return BotShortDescription
*/ */
public static function fromArray(array $data): self public static function fromArray(?array $data): BotShortDescription
{ {
$object = new self(); $object = new self();