Exemple #1
0
 /**
  * {@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;
 }
Exemple #2
0
 public function convertToPHPValue($value, $type)
 {
     if (MType::hasType($type)) {
         $obj = MType::getType($type);
         $value = $obj->convertToPHPValue($value, $this);
     }
     return $value;
 }