1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
area.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Location\Entity;
4
5
use Bitrix\Location\Geometry\Type\BaseGeometry;
6
use Bitrix\Location\Geometry\Type\Point;
7
13
final
class
Area
14
{
16
private
$type;
17
19
private
$code;
20
22
private
$sort;
23
25
private
$geometry;
26
30
public
function
getType
(): string
31
{
32
return
$this->type
;
33
}
34
39
public
function
setType
(
string
$type): Area
40
{
41
$this->type = $type;
42
return
$this;
43
}
44
48
public
function
getCode
(): ?string
49
{
50
return
$this->code
;
51
}
52
57
public
function
setCode
(?
string
$code): Area
58
{
59
$this->code = $code;
60
return
$this;
61
}
62
66
public
function
getSort
(): int
67
{
68
return
$this->sort;
69
}
70
75
public
function
setSort
(
int
$sort): Area
76
{
77
$this->sort = $sort;
78
return
$this;
79
}
80
84
public
function
getGeometry
():
BaseGeometry
85
{
86
return
$this->geometry;
87
}
88
93
public
function
setGeometry
(
BaseGeometry
$geometry): Area
94
{
95
$this->geometry = $geometry;
96
return
$this;
97
}
98
103
public
function
containsPoint
(
Point
$point): ?bool
104
{
105
if
(!$this->geometry)
106
{
107
return
null
;
108
}
109
110
return
$this->geometry->contains($point);
111
}
112
}
$type
$type
Определения
options.php:106
Bitrix\Location\Entity\Area\getType
getType()
Определения
area.php:30
Bitrix\Location\Entity\Area\setSort
setSort(int $sort)
Определения
area.php:75
Bitrix\Location\Entity\Area\setGeometry
setGeometry(BaseGeometry $geometry)
Определения
area.php:93
Bitrix\Location\Entity\Area\containsPoint
containsPoint(Point $point)
Определения
area.php:103
Bitrix\Location\Entity\Area\getSort
getSort()
Определения
area.php:66
Bitrix\Location\Entity\Area\getCode
getCode()
Определения
area.php:48
Bitrix\Location\Entity\Area\setCode
setCode(?string $code)
Определения
area.php:57
Bitrix\Location\Entity\Area\getGeometry
getGeometry()
Определения
area.php:84
Bitrix\Location\Entity\Area\setType
setType(string $type)
Определения
area.php:39
Bitrix\Location\Geometry\Type\BaseGeometry
Определения
basegeometry.php:6
Bitrix\Location\Geometry\Type\Point
Определения
point.php:8
$code
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения
options.php:195
bitrix
modules
location
lib
entity
area.php
Создано системой
1.14.0