UndefinedClass
A reference is made to a class, interface, or trait that does not exist.
Example
Section titled “Example”<?php$obj = new PaymentGateway(); // class not foundHow to fix
Section titled “How to fix”Add the missing use statement, check the namespace, or define the class.