New PHP 7.1 type hints for commands.
This commit is contained in:
parent
4b6dd73a0b
commit
d289571c5b
|
@ -15,8 +15,8 @@ use unreal4u\TelegramAPI\Telegram\Methods\SetWebhook;
|
||||||
*/
|
*/
|
||||||
class TelegramSetWebHookCommand extends ContainerAwareCommand
|
class TelegramSetWebHookCommand extends ContainerAwareCommand
|
||||||
{
|
{
|
||||||
const MODE_SET = 'set';
|
private const MODE_SET = 'set';
|
||||||
const MODE_DELETE = 'delete';
|
private const MODE_DELETE = 'delete';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
|
|
@ -61,32 +61,32 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
|
||||||
private $progress;
|
private $progress;
|
||||||
|
|
||||||
|
|
||||||
public function setLogger(LoggerInterface $logger)
|
public function setLogger(LoggerInterface $logger): void
|
||||||
{
|
{
|
||||||
$this->logger = $logger;
|
$this->logger = $logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setEntityManager(EntityManagerInterface $em)
|
public function setEntityManager(EntityManagerInterface $em): void
|
||||||
{
|
{
|
||||||
$this->em = $em;
|
$this->em = $em;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUserRepository(UserRepository $repository)
|
public function setUserRepository(UserRepository $repository): void
|
||||||
{
|
{
|
||||||
$this->userRepo = $repository;
|
$this->userRepo = $repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setApiClient(UserApi $userApi)
|
public function setApiClient(UserApi $userApi): void
|
||||||
{
|
{
|
||||||
$this->api = $userApi;
|
$this->api = $userApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setApiDelay(int $microSecs)
|
public function setApiDelay(int $microSecs): void
|
||||||
{
|
{
|
||||||
$this->apiDelay = $microSecs;
|
$this->apiDelay = $microSecs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setSubscriptionManager(SubscriptionsManager $subscriptionsManager)
|
public function setSubscriptionManager(SubscriptionsManager $subscriptionsManager): void
|
||||||
{
|
{
|
||||||
$this->subscriptionManager = $subscriptionsManager;
|
$this->subscriptionManager = $subscriptionsManager;
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
|
||||||
/**
|
/**
|
||||||
* @param User[] $users
|
* @param User[] $users
|
||||||
*/
|
*/
|
||||||
private function updateUsersSubscribers(array $users)
|
private function updateUsersSubscribers(array $users): void
|
||||||
{
|
{
|
||||||
// Updating users subscribers
|
// Updating users subscribers
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
|
|
Loading…
Reference in a new issue