<?php

declare(strict_types=1);
if (!defined('WPINC')) {
    die();
}

/**
 * Content Plan Helper Class
 *
 * Provides helper methods for content plan generation and processing.
 */
class CPEPAI_Content_Plan_Helper
{
    /**
     * The posts service instance.
     *
     * @var CPEPAI_Posts_Service
     */
    private CPEPAI_Posts_Service $posts_service;

    /**
     * The database service instance.
     *
     * @var CPEPAI_Database_Service
     */
    private CPEPAI_Database_Service $database_service;

    /**
     * Constructor.
     *
     * @param CPEPAI_Posts_Service $posts_service The posts service instance.
     * @param CPEPAI_Database_Service $database_service The database service instance.
     */
    public function __construct(CPEPAI_Posts_Service $posts_service, CPEPAI_Database_Service $database_service)
    {
        $this->posts_service = $posts_service;
        $this->database_service = $database_service;
    }

    /**
     * Get site information for content plan generation.
     *
     * @return array Site information including title and description.
     */
    public function get_site_information(): array
    {
        return [
            'title' => get_bloginfo('name'),
            'description' => get_bloginfo('description')
        ];
    }
}
