ReviewOS

also looking at this

meemalabs/meema-client-php

Implement Feature Exception

#72
Merged glennmichael123 wants to merge implement-feature-exception into main
5 files +39 -3
src/Traits/DetectsFeature.phpadded+15-0
Changes to src/Traits/DetectsFeature.php
@@ -0,0 +1,15 @@
1<?php
2
3namespace Meema\MeemaClient\Traits;
4
5use Meema\MeemaClient\Exceptions\FeatureNotImplementedException;
6
7trait 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}