📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 17:08:44
📂
/ (Root)
/
home
/
apkbfjox
/
epiwinn.com.pk
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
ai
/
content-planner
/
domain
📍 /home/apkbfjox/epiwinn.com.pk/wp-content/plugins/wordpress-seo/src/ai/content-planner/domain
🔄 Refresh
✏️
Editing: category.php
Writable
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\AI\Content_Planner\Domain; /** * Value object for a Post Category. */ class Category { /** * The name. * * @var string */ private $name; /** * The ID. * * @var int */ private $id; /** * The constructor. * * @param string $name The category title. * @param int $id The category ID. */ public function __construct( string $name, int $id ) { $this->name = $name; $this->id = $id; } /** * Returns this object in array format. * * @return array<string,int> */ public function to_array(): array { return [ 'name' => $this->name, 'id' => $this->id, ]; } }
💾 Save Changes
❌ Cancel