HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/lcc.kaunokolegija.lt/wp-content/plugins/codepress-admin-columns/classes/Services.php
<?php

declare(strict_types=1);

namespace AC;

class Services
{

    private $services;

    public function __construct(array $services = [])
    {
        $this->services = $services;
    }

    public function add(Registerable $service): self
    {
        $this->services[] = $service;

        return $this;
    }

    public function register(): void
    {
        array_map([$this, 'register_service'], $this->services);
    }

    private function register_service(Registerable $service): void
    {
        $service->register();
    }

}