private static function getType($mode = 'strtolower', $plural = true)
    {
        $namespace = get_called_class();
        $class = explode('\\', $namespace);
        $complement = strtolower(array_pop($class) . ($plural ? 's' : ''));

        switch ($mode) {
            case 'ucfirst':
                return ucfirst($complement);
            case 'strtoupper':
                return strtoupper($complement);
            default:
                return $complement;
        }
    }
private static function getType($mode = 'strtolower', $plural = true)
    {
        $namespace = get_called_class();
        $class = explode('\\', $namespace);
        $complement = strtolower(array_pop($class) . ($plural ? 's' : ''));

        switch ($mode) {
            case 'ucfirst':
                return ucfirst($complement);
            case 'strtoupper':
                return strtoupper($complement);
            default:
                return $complement;
        }
    }
private static function getType ( $ mode = 'strtolower' , $ plural = true ) { $ namespace = get_called_class ( ) ; $ class = explode ( '\\' , $ namespace ) ; $ complement = strtolower ( array_pop ( $ class ) . ( $ plural ? 's' : '' ) ) ; switch ( $ mode ) { case 'ucfirst' : return ucfirst ( $ complement ) ; case 'strtoupper' : return strtoupper ( $ complement ) ; default : return $ complement ; } }
Get complement type.

@param string $mode   → ucfirst|strtoupper|strtolower
@param bool   $plural → plural|singular

@return object → complement instance
Get complement type .