/** * Gets the model types based on an array, string, or null type value. * * @param string|array|null * @return array */ private function getTypes($type = null) { if (null === $type) { return $this->mf->getAllTypeNames(); } return (array) $type; }
/** * Returns the available type keys from the MetadataFactory * * @return array */ public function getModelTypes() { return $this->mf->getAllTypeNames(); }