I\'m searching for following issue i have.
The class file names of our project are named logon.class.php
But the interface file for that class is named logon.interface.php>
You should have some naming conventions for your classes and interfaces e.g. your class name is logon and interface name logon_interface, then you can easily differentiate between the two. For example, explode $name by underscore and check if last element is interface.