public function setData(array $data): self
    {
        $this->data = \array_merge($this->data, $data);

        return $this;
    }
public function setData(array $data): self
    {
        $this->data = \array_merge($this->data, $data);

        return $this;
    }
public function setData ( array $ data ) : self { $ this -> data = \ array_merge ( $ this -> data , $ data ) ; return $ this ; }
Set all data to entity.

@param array $data

@return Root
Set all data to entity .