just updating some docblocks

This commit is contained in:
2023-07-28 11:43:53 -06:00
parent f9125ca8cf
commit 3d58f71135
3 changed files with 12 additions and 6 deletions

View File

@ -11,6 +11,7 @@ class Rewrites {
/**
* Class constructor.
*
* @package PluginNamespace\Front\Rewrites
* @since 1.0.0
*
* @return void
@ -25,6 +26,7 @@ class Rewrites {
/**
* Generate new rewrite rules and flush the cached values.
*
* @package PluginNamespace\Front\Rewrites
* @since 1.0.0
*
* @return void
@ -50,9 +52,10 @@ class Rewrites {
* Build the array of post IDs that have a slug for the URL
* along with what custom query variable to use.
*
* @package PluginNamespace\Front\Rewrites
* @since 1.0.0
*
* @return array
* @return array<int, array<string, string>>
*/
public function build_rewrite_urls(): array {
$pages = array();
@ -82,11 +85,12 @@ class Rewrites {
* Append custom query variables to the list WordPress maintinas
* with each request.
*
* @package PluginNamespace\Front\Rewrites
* @since 1.0.0
*
* @param array $variable
* @param array<int, string> $vars
*
* @return array
* @return array<int, string>
*/
public function custom_query_vars( array $vars ): array {
$vars[] = 'foo';