Created
June 30, 2014 17:23
-
-
Save meglio/2458fec110805f3f4e3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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