Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
vendor.php
1
<?php
2
namespace
Bitrix\Calendar\Sync\Vendor
;
3
4
use
Bitrix\Calendar\Sync\Connection\Server
;
5
use
Bitrix\Calendar\Sync\Connection\ServerInterface
;
6
use
Bitrix\Main\ObjectException
;
7
8
class
Vendor
implements
VendorInterface
9
{
11
protected
$code
;
13
protected
$title
;
15
private
$server;
16
22
public
function
__construct
(array $data)
23
{
24
if
(empty($data[
'ACCOUNT_TYPE'
]))
25
{
26
throw
new
ObjectException
(
"Account type is not defined"
);
27
}
28
$this->server =
new
Server
($data);
29
$this->code = $data[
'ACCOUNT_TYPE'
];
30
$this->title = $data[
'ACCOUNT_TYPE'
];
31
}
32
36
public
function
getCode
(): string
37
{
38
return
$this->code
;
39
}
40
44
public
function
getServer
():
ServerInterface
45
{
46
return
$this->server;
47
}
48
54
public
function
setServer
(
Server
$server): self
55
{
56
$this->server = $server;
57
58
return
$this;
59
}
60
}
Bitrix\Calendar\Sync\Connection\Server
Definition
server.php:6
Bitrix\Calendar\Sync\Vendor\Vendor
Definition
vendor.php:9
Bitrix\Calendar\Sync\Vendor\Vendor\setServer
setServer(Server $server)
Definition
vendor.php:54
Bitrix\Calendar\Sync\Vendor\Vendor\$code
$code
Definition
vendor.php:11
Bitrix\Calendar\Sync\Vendor\Vendor\getCode
getCode()
Definition
vendor.php:36
Bitrix\Calendar\Sync\Vendor\Vendor\getServer
getServer()
Definition
vendor.php:44
Bitrix\Calendar\Sync\Vendor\Vendor\$title
$title
Definition
vendor.php:13
Bitrix\Calendar\Sync\Vendor\Vendor\__construct
__construct(array $data)
Definition
vendor.php:22
Bitrix\Main\ObjectException
Definition
exception.php:192
Bitrix\Calendar\Sync\Connection\ServerInterface
Definition
serverinterface.php:5
Bitrix\Calendar\Sync\Vendor\VendorInterface
Definition
vendorinterface.php:9
Bitrix\Calendar\Sync\Vendor
Definition
vendor.php:2
modules
calendar
lib
sync
vendor
vendor.php
Создано системой
1.10.0