public function result($type, $resource, $context) { $return = null; if (array_key_exists($this->_pointer, $this->_records)) { $return = $this->_records[$this->_pointer++]; } return $return; }