public static function createBlame($user, $config = [])
    {
        if (!($user instanceof BaseUserModel)) {
            $message = 'the type of user instance must be the extended class of BaseUserModel.';
            throw new InvalidParamException($message);
        }
        $mbClass = static::buildNoInitModel();
        $mbi = $mbClass->multiBlamesClass;
        return $user->create($mbi::className(), $config);
    }
public static function createBlame($user, $config = [])
    {
        if (!($user instanceof BaseUserModel)) {
            $message = 'the type of user instance must be the extended class of BaseUserModel.';
            throw new InvalidParamException($message);
        }
        $mbClass = static::buildNoInitModel();
        $mbi = $mbClass->multiBlamesClass;
        return $user->create($mbi::className(), $config);
    }
public static function createBlame ( $ user , $ config = [ ] ) { if ( ! ( $ user instanceof BaseUserModel ) ) { $ message = 'the type of user instance must be the extended class of BaseUserModel.' ; throw new InvalidParamException ( $ message ) ; } $ mbClass = static :: buildNoInitModel ( ) ; $ mbi = $ mbClass -> multiBlamesClass ; return $ user -> create ( $ mbi :: className ( ) , $ config ) ; }
Create blame.
@param BaseUserModel $user who will own this blame.
@param array $config blame class configuration array.
@return {$this->multiBlamesClass}
Create blame .