protected function setMutualType($type)
    {
        if (!array_key_exists($type, static::$mutualTypes)) {
            $type = static::$mutualTypeNormal;
        }
        $btAttribute = $this->mutualTypeAttribute;
        if (is_string($btAttribute) && !empty($btAttribute)) {
            return $this->$btAttribute = $type;
        }
        return static::$mutualTypeNormal;
    }
protected function setMutualType($type)
    {
        if (!array_key_exists($type, static::$mutualTypes)) {
            $type = static::$mutualTypeNormal;
        }
        $btAttribute = $this->mutualTypeAttribute;
        if (is_string($btAttribute) && !empty($btAttribute)) {
            return $this->$btAttribute = $type;
        }
        return static::$mutualTypeNormal;
    }
protected function setMutualType ( $ type ) { if ( ! array_key_exists ( $ type , static :: $ mutualTypes ) ) { $ type = static :: $ mutualTypeNormal ; } $ btAttribute = $ this -> mutualTypeAttribute ; if ( is_string ( $ btAttribute ) && ! empty ( $ btAttribute ) ) { return $ this -> $ btAttribute = $ type ; } return static :: $ mutualTypeNormal ; }
Set mutual type.
@param integer $type
@return integer
Set mutual type .