private function _addFeatures($features) { assert(is_array($features)); foreach ($features as &$feature) { assert(is_a($feature, 'GridFeature')); $this->_features[$feature->getId()] = $feature; } }