Neos\Flow\ResourceManagement\PersistentResource::throwExceptionIfProtected PHP Method

throwExceptionIfProtected() protected method

Throws an exception if this PersistentResource object is protected against modifications.
protected throwExceptionIfProtected ( ) : void
return void
    protected function throwExceptionIfProtected()
    {
        if ($this->protected) {
            throw new ResourceException(sprintf('Tried to set a property of the resource object with SHA1 hash %s after it has been protected. Modifications are not allowed as soon as the PersistentResource has been published or persisted.', $this->sha1), 1377852347);
        }
    }