for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Ray.Di package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Di\Di;
* Inject
* @Annotation
* @Target("METHOD")
final class Inject implements InjectInterface
{
* Optional ?
* @var bool
public $optional = false;
* {@inheritDoc}
public function isOptional()
return $this->optional;
}