src/Traits/ReflectionClassLikeTrait.php
public function getStaticProperties()
    {
        // In runtime static properties can be changed in any time
        if ($this->isInitialized()) {
            return parent::getStaticProperties();
        }

        $properties = [];

        $reflectionProperties = $this->getProperties(ReflectionProperty::IS_STATIC);
        foreach ($reflectionProperties as $reflectionProperty) {
            if (!$reflectionProperty instanceof ReflectionProperty) {
                if (!$reflectionProperty->isPublic()) {
                    $reflectionProperty->setAccessible(true);
                }
            }
            $properties[$reflectionProperty->getName()] = $reflectionProperty->getValue();
        }

        return $properties;
    }
public function getStaticProperties()
    {
        // In runtime static properties can be changed in any time
        if ($this->isInitialized()) {
            return parent::getStaticProperties();
        }

        $properties = [];

        $reflectionProperties = $this->getProperties(ReflectionProperty::IS_STATIC);
        foreach ($reflectionProperties as $reflectionProperty) {
            if (!$reflectionProperty instanceof ReflectionProperty) {
                if (!$reflectionProperty->isPublic()) {
                    $reflectionProperty->setAccessible(true);
                }
            }
            $properties[$reflectionProperty->getName()] = $reflectionProperty->getValue();
        }

        return $properties;
    }
public function getStaticProperties ( ) { // In runtime static properties can be changed in any time if ( $ this -> isInitialized ( ) ) { return parent :: getStaticProperties ( ) ; } $ properties = [ ] ; $ reflectionProperties = $ this -> getProperties ( ReflectionProperty :: IS_STATIC ) ; foreach ( $ reflectionProperties as $ reflectionProperty ) { if ( ! $ reflectionProperty instanceof ReflectionProperty ) { if ( ! $ reflectionProperty -> isPublic ( ) ) { $ reflectionProperty -> setAccessible ( true ) ; } } $ properties [ $ reflectionProperty -> getName ( ) ] = $ reflectionProperty -> getValue ( ) ; } return $ properties ; }
Gets static properties

@link http://php.net/manual/en/reflectionclass.getstaticproperties.php

@return array
Gets static properties