Уничтожение
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
/logs
|
||||
/temp
|
||||
/vendor
|
||||
.env
|
||||
/vendor
|
@@ -57,9 +57,9 @@ final class messages extends method
|
||||
|
||||
/**
|
||||
* Записать текст
|
||||
*
|
||||
*
|
||||
* @param string $text Текст
|
||||
*
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function text(string $text): self
|
||||
@@ -76,9 +76,9 @@ final class messages extends method
|
||||
|
||||
/**
|
||||
* Записать фото
|
||||
*
|
||||
*
|
||||
* @param $img Фото
|
||||
*
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function image(...$imgs): self
|
||||
@@ -98,7 +98,7 @@ final class messages extends method
|
||||
|
||||
/**
|
||||
* Записать вложение
|
||||
*
|
||||
*
|
||||
* @param $attachments Вложения
|
||||
*/
|
||||
public function attachment(string ...$attachments): self
|
||||
@@ -284,6 +284,7 @@ final class messages extends method
|
||||
$this->robot->api['attachment'] = implode(',', $this->attachments);
|
||||
}
|
||||
|
||||
return $settings;
|
||||
// Что это?
|
||||
return $settings ?? [];
|
||||
}
|
||||
}
|
||||
|
1
hood/vk/tests/.gitignore
vendored
Normal file
1
hood/vk/tests/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
./settings.php
|
68
hood/vk/tests/settings.php.example
Normal file
68
hood/vk/tests/settings.php.example
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace hood\vk\tests;
|
||||
|
||||
trait settings
|
||||
{
|
||||
/**
|
||||
* @var int $id Идентификатор аккаунта
|
||||
*/
|
||||
protected static int $id = null;
|
||||
|
||||
/**
|
||||
* @var int $id Идентификатор вспомогательного аккаунта
|
||||
*/
|
||||
protected static int $target_id = null;
|
||||
|
||||
/**
|
||||
* @var string $password Входной аккаунта (если не указан ключ)
|
||||
*/
|
||||
protected static string $login = null;
|
||||
|
||||
/**
|
||||
* @var string $password Пароль аккаунта (если не указан ключ)
|
||||
*/
|
||||
protected static string $password = null;
|
||||
|
||||
/**
|
||||
* @var string $key Ключ аккаунта
|
||||
*/
|
||||
protected static string $key = null;
|
||||
|
||||
/**
|
||||
* @var int $group_id Идентификатор группы
|
||||
*/
|
||||
protected static int $group_id = null;
|
||||
|
||||
/**
|
||||
* @var string $key Ключ группы
|
||||
*/
|
||||
protected static string $group_key = null;
|
||||
|
||||
/**
|
||||
* @var float $version Версия API
|
||||
*/
|
||||
protected static float $version = null;
|
||||
|
||||
/**
|
||||
* @var int $project_id Идентификатор проекта
|
||||
*/
|
||||
protected static int $project_id = null;
|
||||
|
||||
/**
|
||||
* @var string $project_key Ключ проекта
|
||||
*/
|
||||
protected static string $project_key = null;
|
||||
|
||||
/**
|
||||
* @var string $project_service_key Сервисный ключ проекта
|
||||
*/
|
||||
protected static string $project_service_key = null;
|
||||
|
||||
/**
|
||||
* @var bool $ssl SSL-протокол
|
||||
*/
|
||||
protected static bool $ssl = false;
|
||||
}
|
Reference in New Issue
Block a user