src/Traits/ReflectionClassLikeTrait.php
public function getStaticPropertyValue($name, $default = null)
    {
        $properties     = $this->getStaticProperties();
        $propertyExists = array_key_exists($name, $properties);

        if (!$propertyExists && func_num_args() === 1) {
            throw new ReflectionException("Static property does not exist and no default value is given");
        }

        return $propertyExists ? $properties[$name] : $default;
    }
public function getStaticPropertyValue($name, $default = null)
    {
        $properties     = $this->getStaticProperties();
        $propertyExists = array_key_exists($name, $properties);

        if (!$propertyExists && func_num_args() === 1) {
            throw new ReflectionException("Static property does not exist and no default value is given");
        }

        return $propertyExists ? $properties[$name] : $default;
    }
public function getStaticPropertyValue ( $ name , $ default = null ) { $ properties = $ this -> getStaticProperties ( ) ; $ propertyExists = array_key_exists ( $ name , $ properties ) ; if ( ! $ propertyExists && func_num_args ( ) === 1 ) { throw new ReflectionException ( "Static property does not exist and no default value is given" ) ; } return $ propertyExists ? $ properties [ $ name ] : $ default ; }
Gets static property value

@param string $name    The name of the static property for which to return a value.
@param mixed  $default A default value to return in case the class does not declare
a static property with the given name

@return mixed
@throws ReflectionException If there is no such property and no default value was given
Gets static property value