for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HnrAzevedo\Filter;
use Exception;
trait CheckTrait{
protected function check_method(string $method)
{
if(!method_exists($this, $method)){
throw new Exception("Filter {$method} not found in ".get_class($this).'.');
}