uri = $uri; $this->relation = $relation; $this->type = $type; $this->language = $language; $this->title = $title; // Validate the length input. if (isset($length) && !is_numeric($length)) { throw new InvalidArgumentException('Length must be numeric.'); } $this->length = (int) $length; } }