rector/tests/NodeVisitor/DependencyInjection/InjectAnnotationToConstructorRector/correct/correct.php.inc
2017-08-08 17:55:38 +02:00

21 lines
378 B
PHP

<?php declare (strict_types=1);
class ClassWithInjects
{
/**
* @var stdClass
*/
private $property;
/**
* @var DateTimeInterface
*/
private $otherProperty;
public function __construct(stdClass $property, DateTimeInterface $otherProperty)
{
$this->property = $property;
$this->otherProperty = $otherProperty;
}
}