Powiedzmy definiuję klasę z metodą tak: class Test {
public function doStuff($a, $b, $c) {
// -- Do stuff --
}
}
Czy to możliwe, aby skorzystać z tej metody, ale z argumentami w inne
Class Shared{
public void sharedMethod(Object o){
//does something to Object
}
}
//this is how threads call the shared method
run(){
sharedInstance.sharedMethod(someObject)