There was a build() method defined in Yii2 in ExpressionBuilderInterface. We have the interface empty now in yiisoft/db.
build()
ExpressionBuilderInterface