Just for completeness, I add the trivial case. The error maybe what the message says in its simplest form. A class YourClass is declared twice with a statement class YourClass { ... }, because you included the file YourClass.php twice.
YourClass
class YourClass { ... }
YourClass.php