'', 'title' => '', 'id' => 0, 'mode' => '', ), $args ); $this->url = $url; $this->type = (string) $args['type']; $this->title = (string) $args['title']; $this->id = (int) $args['id']; $this->mode = (string) $args['mode']; } /** * Gets the entity URL. * * @since 1.7.0 * * @return string The entity URL. */ public function get_url() { return $this->url; } /** * Gets the entity type. * * @since 1.7.0 * * @return string The entity type, or empty string if unknown. */ public function get_type() { return $this->type; } /** * Gets the entity title. * * @since 1.7.0 * * @return string The entity title, or empty string if unknown. */ public function get_title() { return $this->title; } /** * Gets the entity ID. * * @since 1.7.0 * * @return int The entity ID, or 0 if unknown. */ public function get_id() { return $this->id; } /** * Gets the entity URL sub-variant. * * @since 1.42.0 * * @return string The entity title, or empty string if unknown. */ public function get_mode() { return $this->mode; } }