File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/location/lib/entity/address/addresslink.php
Back
<?php namespace Bitrix\Location\Entity\Address; use Bitrix\Main\ArgumentNullException; /** * The default implementation of IAddressLink * * Class AddressLink * @package Bitrix\Location\Entity\Address */ final class AddressLink implements IAddressLink { /** @var string */ private $entityId; /** @var string */ private $entityType; /** * AddressLink constructor. * @param string $entityId * @param string $entityType * @throws ArgumentNullException */ public function __construct(string $entityId, string $entityType) { if($entityId === '') { throw new ArgumentNullException('entityId'); } if($entityType === '') { throw new ArgumentNullException('entityType'); } $this->entityId = $entityId; $this->entityType = $entityType; } /** * @inheritDoc */ public function getAddressLinkEntityId(): string { return $this->entityId; } /** * @inheritDoc */ public function getAddressLinkEntityType(): string { return $this->entityType; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings