public function setDataProvider(DataProviderInterface $dataProvider = null)
    {
        $this->setData($dataProvider);
        $this->isOperationsApplied = false;
        return $this;
    }
public function setDataProvider(DataProviderInterface $dataProvider = null)
    {
        $this->setData($dataProvider);
        $this->isOperationsApplied = false;
        return $this;
    }
public function setDataProvider ( DataProviderInterface $ dataProvider = null ) { $ this -> setData ( $ dataProvider ) ; $ this -> isOperationsApplied = false ; return $ this ; }
Sets data provider.

@param DataProviderInterface|null $dataProvider
@return $this
Sets data provider .