mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-06 03:10:50 +00:00
19 lines
391 B
PHP
19 lines
391 B
PHP
<?php declare (strict_types=1);
|
|
|
|
class ClassWithNamedService implements ContainerAwareInterface
|
|
{
|
|
/**
|
|
* @var stdClass
|
|
*/
|
|
private $stdClass;
|
|
public function __construct(stdClass $stdClass)
|
|
{
|
|
$this->stdClass = $stdClass;
|
|
}
|
|
public function render()
|
|
{
|
|
$someService = $this->stdClass;
|
|
$someResult = $this->stdClass->callMe();
|
|
}
|
|
}
|