Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
addresslinkcollection.php
1
<?php
2
3
namespace
Bitrix\Location\Entity\Address
;
4
5
use
Bitrix\Main\ArgumentTypeException
;
6
12
final
class
AddressLinkCollection
extends
\Bitrix\Location\Entity\Generic\Collection
13
{
15
protected
$items
= [];
16
22
public
function
addItem
($linkedEntity): int
23
{
24
if
(!($linkedEntity instanceof
IAddressLink
))
25
{
26
throw
new
ArgumentTypeException
(
'linkedEntity must implement IAddressLink'
);
27
}
28
29
return
parent::addItem($linkedEntity);
30
}
31
}
Bitrix\Location\Entity\Address\AddressLinkCollection
Definition
addresslinkcollection.php:13
Bitrix\Location\Entity\Address\AddressLinkCollection\addItem
addItem($linkedEntity)
Definition
addresslinkcollection.php:22
Bitrix\Location\Entity\Address\AddressLinkCollection\$items
$items
Definition
addresslinkcollection.php:15
Bitrix\Location\Entity\Generic\Collection
Definition
collection.php:12
Bitrix\Main\ArgumentTypeException
Definition
exception.php:114
Bitrix\Location\Entity\Address\IAddressLink
Definition
iaddresslink.php:11
Bitrix\Location\Entity\Address
Definition
addresscollection.php:3
modules
location
lib
entity
address
addresslinkcollection.php
Создано системой
1.10.0