Simple consistent hooks for PHP classes