Files
2026-04-28 15:13:50 +02:00

29 lines
569 B
PHP

<?php
declare(strict_types=1);
namespace WCPay\Vendor\League\Container\ServiceProvider;
use WCPay\Vendor\League\Container\ContainerAwareTrait;
abstract class AbstractServiceProvider implements ServiceProviderInterface
{
use ContainerAwareTrait;
/**
* @var string
*/
protected $identifier;
public function getIdentifier(): string
{
return $this->identifier ?? get_class($this);
}
public function setIdentifier(string $id): ServiceProviderInterface
{
$this->identifier = $id;
return $this;
}
}