public function beforeMethod() { file_put_contents(__DIR__ . '/before_method.tmp', 'Before method executed'); }