Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Created July 20, 2017 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommcfarlin/445ea17547797672a2b8bdfc4fd607da to your computer and use it in GitHub Desktop.
Save tommcfarlin/445ea17547797672a2b8bdfc4fd607da to your computer and use it in GitHub Desktop.
<?php
if ( ! class_exists( 'My_Unique_Class' ) ) {
class My_Unique_Class {
// class implementation
}
}
<?php
if ( class_exists( 'My_Unique_Class' ) ) {
return;
}
class My_Unique_Class {
// class implementation
}
<?php
namespace TomMcFarlin;
class My_Unique_Class {
// class implementation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment