code: public function setObjectType($type)
      {
          if (!is_object($type)) {
              if (Yii::$app->collectors['types']->has($type)) {
                  $type = Yii::$app->collectors['types']->getOne($type)->object;
              } else {
                  $type = null;
              }
          }
          $this->_objectType = $type;
      }
docs: Set object type.
  
  @param [[@doctodo param_type:type]] $type [[@doctodo param_description:type]]