public function setStaticPropertyValue(string $propertyName, $value) : void
    {
        $property = $this->getProperty($propertyName);

        if (! $property || ! $property->isStatic()) {
            throw PropertyDoesNotExist::fromName($propertyName);
        }

        $property->setValue($value);
    }
public function setStaticPropertyValue(string $propertyName, $value) : void
    {
        $property = $this->getProperty($propertyName);

        if (! $property || ! $property->isStatic()) {
            throw PropertyDoesNotExist::fromName($propertyName);
        }

        $property->setValue($value);
    }
public function setStaticPropertyValue ( string $ propertyName , $ value ) : void { $ property = $ this -> getProperty ( $ propertyName ) ; if ( ! $ property || ! $ property -> isStatic ( ) ) { throw PropertyDoesNotExist :: fromName ( $ propertyName ) ; } $ property -> setValue ( $ value ) ; }
Set the value of a static property

@param mixed $value

@throws ClassDoesNotExist
@throws NoObjectProvided
@throws NotAnObject
@throws ObjectNotInstanceOfClass
Set the value of a static property