<?php
namespace Blazemedia\Affiliation\AdminUserInterface\Settings\Components;

class StyleManager {
    
    public function enqueueAdminStyles(): void {
        wp_enqueue_style(
            'affiliation-admin-settings',
            $this->getStylesUrl(),
            [],
            $this->getVersion()
        );
    }
    
    private function getStylesUrl(): string {
        return plugin_dir_url(__FILE__) . '../assets/admin-settings.css';
    }
    
    private function getVersion(): string {
        return defined('WP_DEBUG') && WP_DEBUG ? time() : '1.0.0';
    }
}