Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
categorybuilder.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Builders\Rooms\Categories
;
4
5
use
Bitrix\Calendar\Core\Builders\Builder
;
6
use
Bitrix\Calendar\Rooms\Categories\Category
;
7
8
abstract
class
CategoryBuilder
implements
Builder
9
{
10
private
Category
$category;
11
15
public
function
build
():
Category
16
{
17
return
18
$this
19
->getBaseCategory()
20
->
setId
($this->
getId
())
21
->setName($this->
getName
())
22
->setRooms($this->
getRooms
())
23
;
24
}
25
26
abstract
protected
function
getId
();
27
abstract
protected
function
getName
();
28
abstract
protected
function
getRooms
();
29
30
protected
function
getBaseCategory
():
Category
31
{
32
if
(empty($this->category))
33
{
34
$this->category =
new
Category
();
35
}
36
37
return
$this->category;
38
}
39
}
Bitrix\Calendar\Core\Builders\Rooms\Categories\CategoryBuilder
Definition
categorybuilder.php:9
Bitrix\Calendar\Core\Builders\Rooms\Categories\CategoryBuilder\getRooms
getRooms()
Bitrix\Calendar\Core\Builders\Rooms\Categories\CategoryBuilder\getId
getId()
Bitrix\Calendar\Core\Builders\Rooms\Categories\CategoryBuilder\build
build()
Definition
categorybuilder.php:15
Bitrix\Calendar\Core\Builders\Rooms\Categories\CategoryBuilder\getName
getName()
Bitrix\Calendar\Core\Builders\Rooms\Categories\CategoryBuilder\getBaseCategory
getBaseCategory()
Definition
categorybuilder.php:30
Bitrix\Calendar\Rooms\Categories\Category
Definition
category.php:13
Bitrix\Calendar\Rooms\Categories\Category\setId
setId(?int $id)
Definition
category.php:28
Bitrix\Calendar\Core\Builders\Builder
Definition
builder.php:6
Bitrix\Calendar\Core\Builders\Rooms\Categories
Definition
categorybuilder.php:3
modules
calendar
lib
core
builders
rooms
categories
categorybuilder.php
Создано системой
1.10.0