public function afterMethod() { file_put_contents(__DIR__ . '/after_method.tmp', 'After method executed'); }