/** * {@inheritdoc} */ public static function getType($type) { if (Type::hasType($type)) { return Type::getType($type); } else { if (MType::hasType($type)) { $class = Manager::getConf('maestro.types')[$type]; return new $class(); } } return false; }
public function convertToPHPValue($value, $type) { if (MType::hasType($type)) { $obj = MType::getType($type); $value = $obj->convertToPHPValue($value, $this); } return $value; }