Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
addresslink.php
1<?php
3
5
12final 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}