merge() public method

Merge array to current structure with setting modification mark
public merge ( array $data ) : Structure
$data array
return Structure
Esempio n. 1
0
 public function merge(array $data)
 {
     if ($this->isStored()) {
         foreach ($data as $fieldName => $value) {
             $this->set($fieldName, $value);
         }
     } else {
         parent::merge($data);
     }
     return $this;
 }