PluginProbe
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel / 1.8.0
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel v1.8.0
1.8.0 1.7.1 1.7.0 1.6.0 1.5.2 trunk 0.1 0.2.0 0.2.1 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.4 0.4.1 0.4.2 0.4.3 1.0 1.1 1.2 1.3.1 1.4.0 1.4.1 1.5.0 All 27 releases
flywp / includes / StaticSite / Engine / Discovery / DiscoveredUrl.php

DiscoveredUrl.php in FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel 1.8.0, at includes/StaticSite/Engine/Discovery/DiscoveredUrl.php

62 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FlyWP\StaticSite\Engine\Discovery;
4
5 /**
6 * One URL that the engine must fetch.
7 *
8 * @since 1.8.0
9 */
10 class DiscoveredUrl {
11
12 /**
13 * Absolute URL.
14 *
15 * @var string
16 */
17 public $url;
18
19 /**
20 * Kind: home, post, page, cpt, term, author, archive, pagination, feed, sitemap, asset or file.
21 *
22 * @var string
23 */
24 public $kind;
25
26 /**
27 * Object type: post, term, user or null.
28 *
29 * @var string|null
30 */
31 public $object_type;
32
33 /**
34 * Object ID.
35 *
36 * @var int|null
37 */
38 public $object_id;
39
40 /**
41 * Last change time, Y-m-d H:i:s GMT. Null when it is not known.
42 *
43 * @var string|null
44 */
45 public $modified_gmt;
46
47 /**
48 * @param string $url Absolute URL.
49 * @param string $kind URL kind.
50 * @param string|null $object_type Object type.
51 * @param int|null $object_id Object ID.
52 * @param string|null $modified_gmt Last change time in GMT.
53 */
54 public function __construct( $url, $kind, $object_type = null, $object_id = null, $modified_gmt = null ) {
55 $this->url = $url;
56 $this->kind = $kind;
57 $this->object_type = $object_type;
58 $this->object_id = null === $object_id ? null : (int) $object_id;
59 $this->modified_gmt = $modified_gmt ? $modified_gmt : null;
60 }
61 }
62