how to refrence another classes function php code example
Example: php call method from another class
$classA = new ClassA();
$name = $classA->getName();
echo $name; //Prints John
$classA = new ClassA();
$name = $classA->getName();
echo $name; //Prints John