Pardon any mistakes in verbiage, I am trying to learn classes.
Once an object has been instantiated, I understand that methods from that class become available to me. My question is, how am I able to run methods from a class other than the instantiated one on said object?
Specifically:
class image {
public static function create() {
$image = new Imagick($file);
$image -> image::autoRotate($image);
...
}
public static function autoRotate($image) {
...
}
}
the line $image -> image::autoRotate($image) yields the error, and I understand the syntax and/or my understanding are at fault. Can someone kindly help me understand how to accomplish this please?