1 | <?php |
||
5 | class HasMethod extends \Psecio\Invoke\MatchInstance |
||
6 | { |
||
7 | protected $error = 'Mismatch on HTTP method :data'; |
||
8 | |||
9 | /** |
||
10 | * Evaluate the provided resource to see if it's in the allowed |
||
11 | * set of HTTP methods |
||
12 | * |
||
13 | * @param \Psecio\Invoke\Resource $data Resource instance |
||
14 | * @return boolean Pass/fail status |
||
15 | */ |
||
16 | public function evaluate($data) |
||
24 | } |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.