Storm\Core\Containers\Map::offsetGet PHP Method

offsetGet() public method

public offsetGet ( $Instance )
    public function offsetGet($Instance)
    {
        if ($this->Storage->contains($Instance)) {
            return $this->Storage[$Instance];
        } else {
            if ($this->InversedStorage->contains($Instance)) {
                return $this->InversedStorage[$Instance];
            } else {
                return null;
            }
        }
    }