1<?php
2/**
3 * MultiLineString: A collection of LineStrings
4 */
5class MultiLineString extends Collection
6{
7  protected $geom_type = 'MultiLineString';
8
9  // MultiLineString is closed if all it's components are closed
10  public function isClosed() {
11    foreach ($this->components as $line) {
12      if (!$line->isClosed()) {
13        return FALSE;
14      }
15    }
16    return TRUE;
17  }
18
19}
20
21