Метод __construct
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
12–23
~/bitrix/modulesim/lib/V2/SharingLink/Dto/CreateDto.php
Исходный код
Сигнатура метода
private function __construct(string $entityId, LinkEntityType $entityType, int $authorId, string $code = '', Type $type = Type::Custom, DateTime $dateCreate = new DateTime(), ?DateTime $dateExpire = null, ?int $maxUses = null, bool $requireApproval = false, ?string $name = null)
Параметры
10| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$entityId
|
string
|
-
|
-
|
$entityType
|
LinkEntityType
|
-
|
-
|
$authorId
|
int
|
-
|
-
|
$code
|
string
|
''
|
-
|
$type
|
Type
|
Type::Custom
|
-
|
$dateCreate
|
DateTime
|
new DateTime()
|
-
|
$dateExpire
|
?DateTime
|
null
|
-
|
$maxUses
|
?int
|
null
|
-
|
$requireApproval
|
bool
|
false
|
-
|
$name
|
?string
|
null
|
-
|