Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
area.php
1<?php
2
4
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}
setGeometry(BaseGeometry $geometry)
Definition area.php:93
containsPoint(Point $point)
Definition area.php:103
setCode(?string $code)
Definition area.php:57
setType(string $type)
Definition area.php:39