rector/stubs/DI/Annotation/Inject.php
2019-10-13 08:09:08 +02:00

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;
}
}