New PHP 7.1 type hints for commands.

This commit is contained in:
Alexey Skobkin 2017-01-13 02:02:25 +03:00
parent 4b6dd73a0b
commit d289571c5b
2 changed files with 9 additions and 9 deletions

View file

@ -15,8 +15,8 @@ use unreal4u\TelegramAPI\Telegram\Methods\SetWebhook;
*/
class TelegramSetWebHookCommand extends ContainerAwareCommand
{
const MODE_SET = 'set';
const MODE_DELETE = 'delete';
private const MODE_SET = 'set';
private const MODE_DELETE = 'delete';
/**
* {@inheritdoc}

View file

@ -61,32 +61,32 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
private $progress;
public function setLogger(LoggerInterface $logger)
public function setLogger(LoggerInterface $logger): void
{
$this->logger = $logger;
}
public function setEntityManager(EntityManagerInterface $em)
public function setEntityManager(EntityManagerInterface $em): void
{
$this->em = $em;
}
public function setUserRepository(UserRepository $repository)
public function setUserRepository(UserRepository $repository): void
{
$this->userRepo = $repository;
}
public function setApiClient(UserApi $userApi)
public function setApiClient(UserApi $userApi): void
{
$this->api = $userApi;
}
public function setApiDelay(int $microSecs)
public function setApiDelay(int $microSecs): void
{
$this->apiDelay = $microSecs;
}
public function setSubscriptionManager(SubscriptionsManager $subscriptionsManager)
public function setSubscriptionManager(SubscriptionsManager $subscriptionsManager): void
{
$this->subscriptionManager = $subscriptionsManager;
}
@ -173,7 +173,7 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
/**
* @param User[] $users
*/
private function updateUsersSubscribers(array $users)
private function updateUsersSubscribers(array $users): void
{
// Updating users subscribers
foreach ($users as $user) {