Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
}
Bitrix\Location\Entity\Area
Definition
area.php:14
Bitrix\Location\Entity\Area\getType
getType()
Definition
area.php:30
Bitrix\Location\Entity\Area\setSort
setSort(int $sort)
Definition
area.php:75
Bitrix\Location\Entity\Area\setGeometry
setGeometry(BaseGeometry $geometry)
Definition
area.php:93
Bitrix\Location\Entity\Area\containsPoint
containsPoint(Point $point)
Definition
area.php:103
Bitrix\Location\Entity\Area\getSort
getSort()
Definition
area.php:66
Bitrix\Location\Entity\Area\getCode
getCode()
Definition
area.php:48
Bitrix\Location\Entity\Area\setCode
setCode(?string $code)
Definition
area.php:57
Bitrix\Location\Entity\Area\getGeometry
getGeometry()
Definition
area.php:84
Bitrix\Location\Entity\Area\setType
setType(string $type)
Definition
area.php:39
Bitrix\Location\Geometry\Type\BaseGeometry
Definition
basegeometry.php:6
Bitrix\Location\Geometry\Type\Point
Definition
point.php:8
Bitrix\Location\Entity
Definition
address.php:3
modules
location
lib
entity
area.php
Создано системой
1.10.0