also looking at this
Implement Feature Exception
#72
5 files
+39
-3
| @@ -0,0 +1,15 @@ | ||
| 1 | <?php | |
| 2 | ||
| 3 | namespace Meema\MeemaClient\Traits; | |
| 4 | ||
| 5 | use Meema\MeemaClient\Exceptions\FeatureNotImplementedException; | |
| 6 | ||
| 7 | trait DetectsFeature | |
| 8 | { | |
| 9 | public function __call($name, $arguments) | |
| 10 | { | |
| 11 | if (! method_exists($this, $name)) { | |
| 12 | throw new FeatureNotImplementedException('Feature not yet implemented. Please contact us if this is something you would like to see rather sooner than later.'); | |
| 13 | } | |
| 14 | } | |
| 15 | } | |