private static function getProps($class)
    {
        if ($class == NULL) {
            return array();
        }
        $class = new \ReflectionClass($class);
        $properties = array_filter($class->getProperties(), function ($prop) use($class)
        {
            return $prop->getDeclaringClass()->name == $class->name;
        });
        return $properties;
    }
private static function getProps($class)
    {
        if ($class == NULL) {
            return array();
        }
        $class = new \ReflectionClass($class);
        $properties = array_filter($class->getProperties(), function ($prop) use($class)
        {
            return $prop->getDeclaringClass()->name == $class->name;
        });
        return $properties;
    }
private static function getProps ( $ class ) { if ( $ class == NULL ) { return array ( ) ; } $ class = new \ ReflectionClass ( $ class ) ; $ properties = array_filter ( $ class -> getProperties ( ) , function ( $ prop ) use ( $ class ) { return $ prop -> getDeclaringClass ( ) -> name == $ class -> name ; } ) ; return $ properties ; }
return props of a class
@param unknown $class
@return boolean|multitype:
return props of a class