Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
roombuilder.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Builders\Rooms
;
4
5
use
Bitrix\Calendar\Rooms\Room
;
6
7
abstract
class
RoomBuilder
implements
\Bitrix\Calendar\Core\Builders\Builder
8
{
9
private
Room
$room;
10
14
public
function
build
():
Room
15
{
16
return
17
$this
18
->getBaseRoom()
19
->
setId
($this->
getId
())
20
->setLocationId($this->
getLocationId
())
21
->setCapacity($this->
getCapacity
())
22
->setNecessity($this->
getNecessity
())
23
->setName($this->
getName
())
24
->setColor($this->
getColor
())
25
->setOwnerId($this->
getOwnerId
())
26
->setCreatedBy()
27
->setAccess($this->
getAccess
())
28
->setCategoryId($this->
getCategoryId
())
29
;
30
}
31
32
abstract
function
getId
();
33
abstract
function
getLocationId
();
34
abstract
function
getCapacity
();
35
abstract
function
getNecessity
();
36
abstract
function
getName
();
37
abstract
function
getColor
();
38
abstract
function
getOwnerId
();
39
abstract
function
getAccess
();
40
abstract
function
getCategoryId
();
41
45
protected
function
getBaseRoom
():
Room
46
{
47
if
(empty($this->room))
48
{
49
$this->room =
new
Room
();
50
}
51
52
return
$this->room;
53
}
54
}
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder
Definition
roombuilder.php:8
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getAccess
getAccess()
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getId
getId()
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\build
build()
Definition
roombuilder.php:14
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getCapacity
getCapacity()
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getName
getName()
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getBaseRoom
getBaseRoom()
Definition
roombuilder.php:45
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getNecessity
getNecessity()
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getLocationId
getLocationId()
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getColor
getColor()
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getOwnerId
getOwnerId()
Bitrix\Calendar\Core\Builders\Rooms\RoomBuilder\getCategoryId
getCategoryId()
Bitrix\Calendar\Rooms\Room
Definition
room.php:15
Bitrix\Calendar\Rooms\Room\setId
setId(?int $id=null)
Definition
room.php:91
Bitrix\Calendar\Core\Builders\Builder
Definition
builder.php:6
Bitrix\Calendar\Core\Builders\Rooms
modules
calendar
lib
core
builders
rooms
roombuilder.php
Создано системой
1.10.0