Airship\Engine\State::offsetSet PHP Method

offsetSet() public method

Store an object in the registry
public offsetSet ( string $key, mixed $value )
$key string
$value mixed
    public function offsetSet($key, $value)
    {
        if (\is_null($key)) {
            $this->engine_state_registry[] = $value;
        } else {
            $this->engine_state_registry[$key] = $value;
        }
    }