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;
    }
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;
    }
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 ; }
Set object type.

@param [[@doctodo param_type:type]] $type [[@doctodo param_description:type]]
Set object type .