Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/laminas/laminas-di/src/Resolver/
Upload File :
Current File : //home/rtorresani/www/vendor/laminas/laminas-di/src/Resolver/AbstractInjection.php

<?php
// phpcs:ignoreFile
declare(strict_types=1);

namespace Laminas\Di\Resolver;

use function sprintf;
use function trigger_error;

use const E_USER_DEPRECATED;

trigger_error(
    sprintf(
        '%s is deprecated, please migrate to %s',
        AbstractInjection::class,
        InjectionInterface::class
    ),
    E_USER_DEPRECATED
);

/**
 * @deprecated Since 3.1.0
 *
 * @see InjectionInterface
 *
 * @codeCoverageIgnore Deprecated
 */
abstract class AbstractInjection
{
    private string $parameterName;

    public function setParameterName(string $name): self
    {
        $this->parameterName = $name;
        return $this;
    }

    public function getParameterName(): string
    {
        return $this->parameterName;
    }

    abstract public function export(): string;

    abstract public function isExportable(): bool;
}