-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sasha kalin
committed
May 10, 2023
1 parent
b336c3f
commit b546926
Showing
48 changed files
with
4,956 additions
and
1,334 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MadmagesTelegram\Types\Type; | ||
|
||
use JMS\Serializer\Annotation\ExclusionPolicy; | ||
use JMS\Serializer\Annotation\AccessType; | ||
use JMS\Serializer\Annotation\SkipWhenEmpty; | ||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Accessor; | ||
use JMS\Serializer\Annotation\Type; | ||
|
||
/** | ||
* https://core.telegram.org/bots/api#botdescription | ||
* | ||
* This object represents the bot's description. | ||
* | ||
* @ExclusionPolicy("none") | ||
* @AccessType("public_method") | ||
*/ | ||
class BotDescription extends AbstractType | ||
{ | ||
|
||
/** | ||
* Returns raw names of properties of this type | ||
* | ||
* @return string[] | ||
*/ | ||
public static function _getPropertyNames(): array | ||
{ | ||
return [ | ||
'description', | ||
]; | ||
} | ||
|
||
/** | ||
* Returns associative array of raw data | ||
* | ||
* @return array | ||
*/ | ||
public function _getData(): array | ||
{ | ||
$result = [ | ||
'description' => $this->getDescription(), | ||
]; | ||
|
||
return parent::normalizeData($result); | ||
} | ||
|
||
/** | ||
* The bot's description | ||
* | ||
* @var string | ||
* @SerializedName("description") | ||
* @Accessor(getter="getDescription", setter="setDescription") | ||
* @Type("string") | ||
*/ | ||
protected $description; | ||
|
||
|
||
/** | ||
* @param string $description | ||
* @return static | ||
*/ | ||
public function setDescription(string $description): self | ||
{ | ||
$this->description = $description; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getDescription(): string | ||
{ | ||
return $this->description; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MadmagesTelegram\Types\Type; | ||
|
||
use JMS\Serializer\Annotation\ExclusionPolicy; | ||
use JMS\Serializer\Annotation\AccessType; | ||
use JMS\Serializer\Annotation\SkipWhenEmpty; | ||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Accessor; | ||
use JMS\Serializer\Annotation\Type; | ||
|
||
/** | ||
* https://core.telegram.org/bots/api#botname | ||
* | ||
* This object represents the bot's name. | ||
* | ||
* @ExclusionPolicy("none") | ||
* @AccessType("public_method") | ||
*/ | ||
class BotName extends AbstractType | ||
{ | ||
|
||
/** | ||
* Returns raw names of properties of this type | ||
* | ||
* @return string[] | ||
*/ | ||
public static function _getPropertyNames(): array | ||
{ | ||
return [ | ||
'name', | ||
]; | ||
} | ||
|
||
/** | ||
* Returns associative array of raw data | ||
* | ||
* @return array | ||
*/ | ||
public function _getData(): array | ||
{ | ||
$result = [ | ||
'name' => $this->getName(), | ||
]; | ||
|
||
return parent::normalizeData($result); | ||
} | ||
|
||
/** | ||
* The bot's name | ||
* | ||
* @var string | ||
* @SerializedName("name") | ||
* @Accessor(getter="getName", setter="setName") | ||
* @Type("string") | ||
*/ | ||
protected $name; | ||
|
||
|
||
/** | ||
* @param string $name | ||
* @return static | ||
*/ | ||
public function setName(string $name): self | ||
{ | ||
$this->name = $name; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName(): string | ||
{ | ||
return $this->name; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MadmagesTelegram\Types\Type; | ||
|
||
use JMS\Serializer\Annotation\ExclusionPolicy; | ||
use JMS\Serializer\Annotation\AccessType; | ||
use JMS\Serializer\Annotation\SkipWhenEmpty; | ||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Accessor; | ||
use JMS\Serializer\Annotation\Type; | ||
|
||
/** | ||
* https://core.telegram.org/bots/api#botshortdescription | ||
* | ||
* This object represents the bot's short description. | ||
* | ||
* @ExclusionPolicy("none") | ||
* @AccessType("public_method") | ||
*/ | ||
class BotShortDescription extends AbstractType | ||
{ | ||
|
||
/** | ||
* Returns raw names of properties of this type | ||
* | ||
* @return string[] | ||
*/ | ||
public static function _getPropertyNames(): array | ||
{ | ||
return [ | ||
'short_description', | ||
]; | ||
} | ||
|
||
/** | ||
* Returns associative array of raw data | ||
* | ||
* @return array | ||
*/ | ||
public function _getData(): array | ||
{ | ||
$result = [ | ||
'short_description' => $this->getShortDescription(), | ||
]; | ||
|
||
return parent::normalizeData($result); | ||
} | ||
|
||
/** | ||
* The bot's short description | ||
* | ||
* @var string | ||
* @SerializedName("short_description") | ||
* @Accessor(getter="getShortDescription", setter="setShortDescription") | ||
* @Type("string") | ||
*/ | ||
protected $shortDescription; | ||
|
||
|
||
/** | ||
* @param string $shortDescription | ||
* @return static | ||
*/ | ||
public function setShortDescription(string $shortDescription): self | ||
{ | ||
$this->shortDescription = $shortDescription; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getShortDescription(): string | ||
{ | ||
return $this->shortDescription; | ||
} | ||
|
||
} |
Oops, something went wrong.