I have a class with a private function that i don’t want to be called directly.
Example class:
class Importer{
private function import(){}
}
Now i want to send a parameter passed to __autoload() to import function of Importer class.
I also know regularly is impossible and illogical to call a private function but do you know any solution or trick to keep import() private or preventing direct access ?
Output