Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
addresslink.php
1
<?php
2
namespace
Bitrix\Location\Entity\Address
;
3
4
use
Bitrix\Main\ArgumentNullException
;
5
12
final
class
AddressLink
implements
IAddressLink
13
{
15
private
$entityId;
16
18
private
$entityType;
19
26
public
function
__construct
(
string
$entityId,
string
$entityType)
27
{
28
if
($entityId ===
''
)
29
{
30
throw
new
ArgumentNullException
(
'entityId'
);
31
}
32
33
if
($entityType ===
''
)
34
{
35
throw
new
ArgumentNullException
(
'entityType'
);
36
}
37
38
$this->entityId = $entityId;
39
$this->entityType = $entityType;
40
}
41
45
public
function
getAddressLinkEntityId
(): string
46
{
47
return
$this->entityId;
48
}
49
53
public
function
getAddressLinkEntityType
(): string
54
{
55
return
$this->entityType;
56
}
57
}
Bitrix\Location\Entity\Address\AddressLink
Definition
addresslink.php:13
Bitrix\Location\Entity\Address\AddressLink\getAddressLinkEntityType
getAddressLinkEntityType()
Definition
addresslink.php:53
Bitrix\Location\Entity\Address\AddressLink\__construct
__construct(string $entityId, string $entityType)
Definition
addresslink.php:26
Bitrix\Location\Entity\Address\AddressLink\getAddressLinkEntityId
getAddressLinkEntityId()
Definition
addresslink.php:45
Bitrix\Main\ArgumentNullException
Definition
exception.php:54
Bitrix\Location\Entity\Address\IAddressLink
Definition
iaddresslink.php:11
Bitrix\Location\Entity\Address
Definition
addresscollection.php:3
modules
location
lib
entity
address
addresslink.php
Создано системой
1.10.0