# flywp/1.8.0/includes/StaticSite/Engine/Discovery/DiscoveredUrl.php

FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel, version 1.8.0. 62 lines.

- Page: https://pluginprobe.com/plugins/flywp/1.8.0/code/includes/StaticSite/Engine/Discovery/DiscoveredUrl.php
- Raw: https://pluginprobe.com/plugins/flywp/1.8.0/raw/includes/StaticSite/Engine/Discovery/DiscoveredUrl.php
- Modified: 2026-10-01T05:36:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/flywp/1.8.0/code/includes/StaticSite/Engine/Discovery/DiscoveredUrl.php#L10-L20`.

```php
<?php

namespace FlyWP\StaticSite\Engine\Discovery;

/**
 * One URL that the engine must fetch.
 *
 * @since 1.8.0
 */
class DiscoveredUrl {

    /**
     * Absolute URL.
     *
     * @var string
     */
    public $url;

    /**
     * Kind: home, post, page, cpt, term, author, archive, pagination, feed, sitemap, asset or file.
     *
     * @var string
     */
    public $kind;

    /**
     * Object type: post, term, user or null.
     *
     * @var string|null
     */
    public $object_type;

    /**
     * Object ID.
     *
     * @var int|null
     */
    public $object_id;

    /**
     * Last change time, Y-m-d H:i:s GMT. Null when it is not known.
     *
     * @var string|null
     */
    public $modified_gmt;

    /**
     * @param string      $url          Absolute URL.
     * @param string      $kind         URL kind.
     * @param string|null $object_type  Object type.
     * @param int|null    $object_id    Object ID.
     * @param string|null $modified_gmt Last change time in GMT.
     */
    public function __construct( $url, $kind, $object_type = null, $object_id = null, $modified_gmt = null ) {
        $this->url          = $url;
        $this->kind         = $kind;
        $this->object_type  = $object_type;
        $this->object_id    = null === $object_id ? null : (int) $object_id;
        $this->modified_gmt = $modified_gmt ? $modified_gmt : null;
    }
}

```
