public function offsetSet($key, $resource) { throw new BadMethodCallException('Lazy resource collections cannot be modified.'); }