mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
39 lines
575 B
PHP
39 lines
575 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
// source: https://github.com/PHP-DI/PHP-DI/blob/master/src/Annotation/Inject.php
|
|
|
|
namespace DI\Annotation;
|
|
|
|
if (class_exists('DI\Annotation\Inject')) {
|
|
return;
|
|
}
|
|
|
|
/**
|
|
* @Annotation
|
|
* @Target({"METHOD","PROPERTY"})
|
|
*/
|
|
final class Inject
|
|
{
|
|
/**
|
|
* @var string|null
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
private $parameters = [];
|
|
|
|
public function getName(): ?string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function getParameters(): array
|
|
{
|
|
return $this->parameters;
|
|
}
|
|
}
|