<?php
namespace Foo\Bar;
abstract class AbstractClass
{
public function trigger($event)
{
if ($event && method_exists($this, $event)) {
return $this->"on".$event();
}
}
}
$obj = new AbstractClass; // dont work