diff --git a/inc/Admin/Page.php b/inc/Admin/Page.php index 3fc2e6c..21756a6 100644 --- a/inc/Admin/Page.php +++ b/inc/Admin/Page.php @@ -131,7 +131,7 @@ class Page implements Registrable { * * @since 0.1.0 * - * @var string + * @var string|false */ private string|false $hook_name = false; @@ -245,7 +245,7 @@ private function get_callback(): \Closure { * * @since 0.1.0 * - * @return string The hook name of the menu page. + * @return string|false The hook name of the menu page. */ public function get_hook_name(): string|false { return $this->hook_name; diff --git a/inc/Contracts/PostType.php b/inc/Contracts/PostType.php index 0875984..e3c53c1 100644 --- a/inc/Contracts/PostType.php +++ b/inc/Contracts/PostType.php @@ -13,4 +13,10 @@ * @since 0.3.2 */ interface PostType { + /** + * Post type name. + * + * Implementations are expected to override this. + */ + public const string NAME = ''; } diff --git a/inc/PostMeta.php b/inc/PostMeta.php index 4061a4d..bc08451 100644 --- a/inc/PostMeta.php +++ b/inc/PostMeta.php @@ -103,9 +103,8 @@ protected function post_type(): string { * * @since 0.1.0 * - * @return string Type of the data. + * @return 'array'|'boolean'|'integer'|'number'|'object'|'string' Type of the data. */ - /** @return 'array'|'boolean'|'integer'|'number'|'object'|'string' */ protected function type(): string { return PostMetaArgs::TYPE_STRING; } diff --git a/inc/TermMeta.php b/inc/TermMeta.php index 07f69da..89d71a4 100644 --- a/inc/TermMeta.php +++ b/inc/TermMeta.php @@ -103,9 +103,8 @@ protected function taxonomy(): string { * * @since 0.1.0 * - * @return string Type of the data. + * @return 'array'|'boolean'|'integer'|'number'|'object'|'string' Type of the data. */ - /** @return 'array'|'boolean'|'integer'|'number'|'object'|'string' */ protected function type(): string { return TermMetaArgs::TYPE_STRING; }