Skip to content

Instantly share code, notes, and snippets.

@meglio
Created June 30, 2014 17:23
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 meglio/2458fec110805f3f4e3d to your computer and use it in GitHub Desktop.
Save meglio/2458fec110805f3f4e3d to your computer and use it in GitHub Desktop.
<?php
namespace _\lang;
trait Classes
{
static function fullClassName()
{
return __CLASS__;
}
static function sameClassAsMe($object)
{
return is_object($object) && get_class($object) == self::fullClassName();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment