public function setMetadataCacheInClass($flag) { $this->_metadataCacheInClass = (bool) $flag; return $this; }