src/Headzoo/Core/Objects.php
public static function getFullName($obj)
    {
        $name = null;
        if (is_object($obj)) {
            $name = get_class($obj);
        } else if (is_string($obj)) {
            $name = trim($obj, '\\');
        } else {
            self::toss(
                "InvalidArgument",
                "Argument must be an object or string. Got {0} instead.",
                $obj
            );
        }
        
        return $name;
    }
public static function getFullName($obj)
    {
        $name = null;
        if (is_object($obj)) {
            $name = get_class($obj);
        } else if (is_string($obj)) {
            $name = trim($obj, '\\');
        } else {
            self::toss(
                "InvalidArgument",
                "Argument must be an object or string. Got {0} instead.",
                $obj
            );
        }
        
        return $name;
    }
public static function getFullName ( $ obj ) { $ name = null ; if ( is_object ( $ obj ) ) { $ name = get_class ( $ obj ) ; } else if ( is_string ( $ obj ) ) { $ name = trim ( $ obj , '\\' ) ; } else { self :: toss ( "InvalidArgument" , "Argument must be an object or string. Got {0} instead." , $ obj ) ; } return $ name ; }
Returns a fully qualified class name

Returns a string containing the fully qualified name of the class. The name is normalized by
removing leading and trailing namespace separators.

The $obj argument may be either an object, or a string. When given a string the value *shout*
be the name of a class, but this method does not check if the class exists.

Examples:
```php
echo Objects::getFullName(new stdClass());
// Outputs: "stdClass"

echo Objects::getFullName('\Headzoo\Core\Objects');
// Outputs: "Headzoo\Core\Objects"
```

@param  object|string $obj An object or class name
@return string
Returns a fully qualified class name