src/Geometry.php 1 location
|
@@ 80-82 (lines=3) @@
|
77 |
|
public function __call($name, $arguments) |
78 |
|
{ |
79 |
|
// Sugar to make parse<Format>() work |
80 |
|
if (preg_match("/^parse([A-Z][A-z]*)/u", $name, $parts) && 1 === count($arguments)) { |
81 |
|
return $this->parse($arguments[0], $parts[1]); |
82 |
|
} |
83 |
|
|
84 |
|
throw new RuntimeException(sprintf("Call to undefined method %s::%s().", __CLASS__, $name)); |
85 |
|
} |
src/Support/GeometryProxy.php 1 location
|
@@ 90-92 (lines=3) @@
|
87 |
|
public function __call($name, $arguments) |
88 |
|
{ |
89 |
|
// Sugar to make to<Format>() work |
90 |
|
if (preg_match("/^to([A-Z][A-z]*)/u", $name, $parts) && 0 === count($arguments)) { |
91 |
|
return $this->geometry->out($this->mapper->map($parts[1])); |
92 |
|
} |
93 |
|
|
94 |
|
// Call the method on the class being proxied |
95 |
|
if (method_exists($this->geometry, $name)) { |