public function get($idx)
    {
        if (!array_key_exists($idx, $this->entities)) {
            throw new OutOfBoundsException('index not found, index:'.$idx);
        }

        return $this->entities[$idx];
    }
public function get($idx)
    {
        if (!array_key_exists($idx, $this->entities)) {
            throw new OutOfBoundsException('index not found, index:'.$idx);
        }

        return $this->entities[$idx];
    }
{@inheritdoc}