src/DataDefinition/ModelRelationship/RootCondition.php
private function guardProviderName($model)
    {
        if ($model->getProviderName() !== $this->sourceProvider) {
            throw new \InvalidArgumentException(
                \sprintf('provider name %s is not equal to %s', $model->getProviderName(), $this->getSourceName())
            );
        }
    }
private function guardProviderName($model)
    {
        if ($model->getProviderName() !== $this->sourceProvider) {
            throw new \InvalidArgumentException(
                \sprintf('provider name %s is not equal to %s', $model->getProviderName(), $this->getSourceName())
            );
        }
    }
private function guardProviderName ( $ model ) { if ( $ model -> getProviderName ( ) !== $ this -> sourceProvider ) { throw new \ InvalidArgumentException ( \ sprintf ( 'provider name %s is not equal to %s' , $ model -> getProviderName ( ) , $ this -> getSourceName ( ) ) ) ; } }
Guard that the data provider name matches.

@param ModelInterface $model The model.

@return void

@throws \InvalidArgumentException When any provider name mismatches.
Guard that the data provider name matches .