@@ -37,7 +37,7 @@ |
||
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
40 | - throw new BadMethodCallException("Call to undefined method ". get_class($this).'::'.$name); |
|
40 | + throw new BadMethodCallException("Call to undefined method ".get_class($this).'::'.$name); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | public function __debugInfo() |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | public function __call($name, $arguments) |
27 | 27 | { |
28 | - if (strpos($name, 'get') === 0) { |
|
28 | + if (strpos($name, 'get') === 0) { |
|
29 | 29 | $property = strtolower(substr($name, 3)); |
30 | 30 | if (property_exists($this, $property)) { |
31 | 31 | $reference = $this->getRepository()->getSpace()->getReference($property); |
@@ -274,6 +274,9 @@ |
||
274 | 274 | return $this->formatNamesHash[$name]; |
275 | 275 | } |
276 | 276 | |
277 | + /** |
|
278 | + * @param string $name |
|
279 | + */ |
|
277 | 280 | public function getReference($name) |
278 | 281 | { |
279 | 282 | return $this->isReference($name) ? $this->formatReferences[$name] : null; |