public function import(array $data)
    {
        $this->validate($data, $this->getStructureDefinition());
        $this->data = $data;
    }
public function import(array $data)
    {
        $this->validate($data, $this->getStructureDefinition());
        $this->data = $data;
    }
public function import ( array $ data ) { $ this -> validate ( $ data , $ this -> getStructureDefinition ( ) ) ; $ this -> data = $ data ; }
Import data from an array.

@param array $data

@throws \InvalidArgumentException If missing any of the required keys.

@since 0.1
Import data from an array .