Check class_exists before class definition / Doxygen problem
Currently when I create a class for my WordPress, I start the class with
if ( ! class_exist( 'class_i_want_create' ) ) :
....
class_definition
....
endif;
But now I want to create a documentation with Doxygen. But Doxygen doesn't find the class when it's surrounded with the class_exist
.
So is it a bad practice when I don't surround it with the class_exist
?
Or does anybody know how I can configure Doxygen to see the class even when it's surrounded with the class_exist
?
Topic oop php documentation customization Wordpress
Category Web