Files
farmOS-dev/vendor/league/container/src/ServiceProvider/AbstractServiceProvider.php
2024-12-10 15:08:16 +01:00

29 lines
543 B
PHP

<?php
declare(strict_types=1);
namespace League\Container\ServiceProvider;
use 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;
}
}