|
@@ 83-85 (lines=3) @@
|
| 80 |
|
return $this->eq(static::create($reflection->getConstant(self::stringToConstant(substr($name, 2))))); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
if (0 === strpos($name, 'get') && ctype_upper($name[3])) { |
| 84 |
|
return $this->get(lcfirst(substr($name, 3))); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
throw new BadMethodCallException( |
| 88 |
|
sprintf('Undefined method "%s" in class "%s"', $name, static::class) |
|
@@ 113-115 (lines=3) @@
|
| 110 |
|
return static::create($constants[$const]); |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
if (0 === strpos($name, 'from') && ctype_upper($name[4])) { |
| 114 |
|
return static::from(lcfirst(substr($name, 4)), $arguments[0]); |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
throw new BadMethodCallException( |
| 118 |
|
sprintf('Undefined method "%s" in class "%s"', $name, static::class) |