public function setReadOnly()
    {
        $this->allowModifications = false;

        /** @var Config $value */
        foreach ($this->data as $value) {
            if ($value instanceof self) {
                $value->setReadOnly();
            }
        }
    }
public function setReadOnly()
    {
        $this->allowModifications = false;

        /** @var Config $value */
        foreach ($this->data as $value) {
            if ($value instanceof self) {
                $value->setReadOnly();
            }
        }
    }
public function setReadOnly ( ) { $ this -> allowModifications = false ; /** @var Config $value */ foreach ( $ this -> data as $ value ) { if ( $ value instanceof self ) { $ value -> setReadOnly ( ) ; } } }
Prevent any more modifications being made to this instance.

Useful after merge() has been used to merge multiple Config objects
into one object which should then not be modified again.

@return void
Prevent any more modifications being made to this instance .