The doc-type class-string could not be parsed: Unknown type name "class-string" at position 0. (view supported doc-types)
This check marks PHPDoc comments that could not be parsed by our parser. To see
which comment annotations we can parse, please refer to our documentation on
supported doc-types.
Loading history...
27
*/
28
public function __construct(string $interface)
29
{
30
$this->interface = $interface;
31
}
32
33
/**
34
* {@inheritdoc}
35
*/
36
public function __toString(): string
37
{
38
return '';
39
}
40
41
/**
42
* {@inheritdoc}
43
*/
44
public function inject(Container $container)
45
{
46
return null;
47
}
48
49
/**
50
* {@inheritdoc}
51
*
52
* @return void
53
*/
54
public function register(array &$container, Bind $bind)
55
{
56
$container[(string) $bind] = $bind->getBound();
57
}
58
59
/**
60
* {@inheritdoc}
61
*/
62
public function setScope($scope)
63
{
64
}
65
66
public function toNull(string $scriptDir): Dependency
67
{
68
assert(is_dir($scriptDir));
69
$nullClass = (new NullObject($scriptDir))($this->interface);
70
71
return new Dependency(new NewInstance(new ReflectionClass($nullClass), new SetterMethods([])));
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.