Skip to content

Commit 7c431e6

Browse files
committed
Doc 📖
1 parent 472f5c1 commit 7c431e6

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/Types/GeometryCollection.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function jsonSerialize()
150150
}
151151

152152
/**
153-
* Checks.
153+
* Checks whether the items are valid to create this collection.
154154
*
155155
* @param array $items
156156
*/
@@ -163,6 +163,13 @@ protected function validateItems(array $items)
163163
}
164164
}
165165

166+
/**
167+
* Checks whether the array has enough items to generate a valid WKT.
168+
*
169+
* @param array $items
170+
*
171+
* @see $minimumCollectionItems
172+
*/
166173
protected function validateItemCount(array $items)
167174
{
168175
if (count($items) < $this->minimumCollectionItems) {
@@ -174,6 +181,13 @@ protected function validateItemCount(array $items)
174181
}
175182
}
176183

184+
/**
185+
* Checks the type of the items in the array.
186+
*
187+
* @param $item
188+
*
189+
* @see $collectionItemType
190+
*/
177191
protected function validateItemType($item)
178192
{
179193
if (!$item instanceof $this->collectionItemType) {

0 commit comments

Comments
 (0)