Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
iGusev committed Sep 19, 2015
1 parent 2da78f4 commit 53e8e61
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/Types/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Document extends BaseType implements TypeInterface
*/
static protected $map = array(
'file_id' => true,
'thumb' => '\TelegramBot\Api\Types\PhotoSize',
'thumb' => \TelegramBot\Api\Types\PhotoSize::class,
'file_name' => true,
'mime_type' => true,
'file_size' => true
Expand Down
30 changes: 15 additions & 15 deletions src/Types/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@ class Message extends BaseType implements TypeInterface
*/
static protected $map = array(
'message_id' => true,
'from' => '\TelegramBot\Api\Types\User',
'from' => \TelegramBot\Api\Types\User::class,
'date' => true,
'chat' => '\TelegramBot\Api\Types\Chat',
'forward_from' => '\TelegramBot\Api\Types\User',
'chat' => \TelegramBot\Api\Types\Chat::class,
'forward_from' => \TelegramBot\Api\Types\User::class,
'forward_date' => true,
'reply_to_message' => '\TelegramBot\Api\Types\Message',
'reply_to_message' => \TelegramBot\Api\Types\Message::class,
'text' => true,
'audio' => '\TelegramBot\Api\Types\Audio',
'document' => '\TelegramBot\Api\Types\Document',
'photo' => '\TelegramBot\Api\Types\ArrayOfPhotoSize',
'sticker' => '\TelegramBot\Api\Types\Sticker',
'video' => '\TelegramBot\Api\Types\Video',
'voice' => '\TelegramBot\Api\Types\Voice',
'audio' => \TelegramBot\Api\Types\Audio::class,
'document' => \TelegramBot\Api\Types\Document::class,
'photo' => \TelegramBot\Api\Types\ArrayOfPhotoSize::class,
'sticker' => \TelegramBot\Api\Types\Sticker::class,
'video' => \TelegramBot\Api\Types\Video::class,
'voice' => \TelegramBot\Api\Types\Voice::class,
'caption' => true,
'contact' => '\TelegramBot\Api\Types\Contact',
'location' => '\TelegramBot\Api\Types\Location',
'new_chat_participant' => '\TelegramBot\Api\Types\User',
'left_chat_participant' => '\TelegramBot\Api\Types\User',
'contact' => \TelegramBot\Api\Types\Contact::class,
'location' => \TelegramBot\Api\Types\Location::class,
'new_chat_participant' => \TelegramBot\Api\Types\User::class,
'left_chat_participant' => \TelegramBot\Api\Types\User::class,
'new_chat_title' => true,
'new_chat_photo' => '\TelegramBot\Api\Types\ArrayOfPhotoSize',
'new_chat_photo' => \TelegramBot\Api\Types\ArrayOfPhotoSize::class,
'delete_chat_photo' => true,
'group_chat_created' => true
);
Expand Down
2 changes: 1 addition & 1 deletion src/Types/Sticker.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Sticker extends BaseType implements TypeInterface
'file_id' => true,
'width' => true,
'height' => true,
'thumb' => '\TelegramBot\Api\Types\PhotoSize',
'thumb' => \TelegramBot\Api\Types\PhotoSize::class,
'file_size' => true,
);

Expand Down
2 changes: 1 addition & 1 deletion src/Types/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Update extends BaseType implements TypeInterface
*/
static protected $map = array(
'update_id' => true,
'message' => '\TelegramBot\Api\Types\Message',
'message' => \TelegramBot\Api\Types\Message::class,
);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Types/UserProfilePhotos.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class UserProfilePhotos extends BaseType implements TypeInterface
*/
static protected $map = array(
'total_count' => true,
'photos' => '\TelegramBot\Api\Types\ArrayOfArrayOfPhotoSize',
'photos' => \TelegramBot\Api\Types\ArrayOfArrayOfPhotoSize::class,
);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Types/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Video extends BaseType implements TypeInterface
'width' => true,
'height' => true,
'duration' => true,
'thumb' => '\TelegramBot\Api\Types\PhotoSize',
'thumb' => \TelegramBot\Api\Types\PhotoSize::class,
'mime_type' => true,
'file_size' => true
);
Expand Down

0 comments on commit 53e8e61

Please sign in to comment.