nodes = $nodes; } /** * @param string $iri The IRI to dereference. * @return stdClass|array The dereferenced node. * @throws NodeNotFoundException If a node with the IRI could not be found. */ public function dereference( $iri ) { if ( array_key_exists( $iri, $this->nodes ) ) { return $this->nodes[$iri]; } else { throw new NodeNotFoundException( $iri ); } } }