/** * @param mixed $uri The URI of the node. * @throws \Exception If parameter $value is not a valid URI. */ public function __construct($uri) { if ($uri == null || !NodeUtils::simpleCheckURI($uri)) { throw new \Exception('Parameter $uri is not a valid URI: ' . $uri); } $this->uri = $uri; }