1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
area.php
См. документацию.
1<?php
2
3namespace Bitrix\Location\Entity;
4
5use Bitrix\Location\Geometry\Type\BaseGeometry;
6use Bitrix\Location\Geometry\Type\Point;
7
13final 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
Определения options.php:106
getType()
Определения area.php:30
setSort(int $sort)
Определения area.php:75
setGeometry(BaseGeometry $geometry)
Определения area.php:93
containsPoint(Point $point)
Определения area.php:103
getSort()
Определения area.php:66
getCode()
Определения area.php:48
setCode(?string $code)
Определения area.php:57
getGeometry()
Определения area.php:84
setType(string $type)
Определения area.php:39
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения options.php:195