src/Traits/ReflectionUtilities.php
public function getStaticPropertyValue($object, $propertyName) {
        $className = $object;

        if(is_object($className)) {
            $className = get_class($object);
        }

        $reflector = new ReflectionClass($className);
        $properties = $reflector->getStaticProperties();

        return (isset($properties[$propertyName])) ? $properties[$propertyName] : NULL;
    }
public function getStaticPropertyValue($object, $propertyName) {
        $className = $object;

        if(is_object($className)) {
            $className = get_class($object);
        }

        $reflector = new ReflectionClass($className);
        $properties = $reflector->getStaticProperties();

        return (isset($properties[$propertyName])) ? $properties[$propertyName] : NULL;
    }
public function getStaticPropertyValue ( $ object , $ propertyName ) { $ className = $ object ; if ( is_object ( $ className ) ) { $ className = get_class ( $ object ) ; } $ reflector = new ReflectionClass ( $ className ) ; $ properties = $ reflector -> getStaticProperties ( ) ; return ( isset ( $ properties [ $ propertyName ] ) ) ? $ properties [ $ propertyName ] : NULL ; }
Returns a static property from the given class. You can pass this function an object or
a FQCN as string.

@param object|string $object A concrete class or a FQCN
@param string $propertyName The property name

@return NULL|mixed
Returns a static property from the given class . You can pass this function an object or a FQCN as string .