Skip to content

Commit

Permalink
Add missing since tags
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Nov 10, 2024
1 parent a8cfcca commit 124b9ba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/optimization-detective/class-od-url-metric.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ public function set_group( OD_URL_Metric_Group $group ): void {
/**
* Gets JSON schema for URL Metric.
*
* @since 0.1.0
*
* @todo Cache the return value?
*
* @return array<string, mixed> Schema.
Expand Down Expand Up @@ -431,6 +433,8 @@ public function get( string $key ) {
/**
* Gets UUID.
*
* @since 0.6.0
*
* @return string UUID.
*/
public function get_uuid(): string {
Expand All @@ -440,6 +444,8 @@ public function get_uuid(): string {
/**
* Gets URL.
*
* @since 0.1.0
*
* @return string URL.
*/
public function get_url(): string {
Expand All @@ -460,6 +466,8 @@ public function get_queried_object(): ?array {
/**
* Gets viewport data.
*
* @since 0.1.0
*
* @return ViewportRect Viewport data.
*/
public function get_viewport(): array {
Expand All @@ -469,6 +477,8 @@ public function get_viewport(): array {
/**
* Gets viewport width.
*
* @since 0.1.0
*
* @return int Viewport width.
*/
public function get_viewport_width(): int {
Expand All @@ -478,6 +488,8 @@ public function get_viewport_width(): int {
/**
* Gets timestamp.
*
* @since 0.1.0
*
* @return float Timestamp.
*/
public function get_timestamp(): float {
Expand All @@ -487,6 +499,8 @@ public function get_timestamp(): float {
/**
* Gets elements.
*
* @since 0.1.0
*
* @return OD_Element[] Elements.
*/
public function get_elements(): array {
Expand All @@ -504,6 +518,8 @@ function ( array $element ): OD_Element {
/**
* Specifies data which should be serialized to JSON.
*
* @since 0.1.0
*
* @return Data Exports to be serialized by json_encode().
*/
public function jsonSerialize(): array {
Expand Down

0 comments on commit 124b9ba

Please sign in to comment.