Get all or a subset of matching key value pairs
array $keys Pass an array of keys to retrieve only a subset of key value pairs:
array Returns an array of all matching key value pairs
public function getAll(array $keys = null) {
return $keys ? array_intersect_key($this->data, array_flip($keys)) : $this->data;
}