src/Data.php
public function add($data, $overwrite = true)
    {
        foreach ($data as $property => $value) {
            if ($overwrite || !$this->offsetExists($property)) {
                $this->set($property, $value);
            }
        }
        return $this;
    }
public function add($data, $overwrite = true)
    {
        foreach ($data as $property => $value) {
            if ($overwrite || !$this->offsetExists($property)) {
                $this->set($property, $value);
            }
        }
        return $this;
    }
public function add ( $ data , $ overwrite = true ) { foreach ( $ data as $ property => $ value ) { if ( $ overwrite || ! $ this -> offsetExists ( $ property ) ) { $ this -> set ( $ property , $ value ) ; } } return $ this ; }
Add data in batch from an array
@param array $data
@param bool $overwrite
@return Data
Add data in batch from an array