Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
[CodingStandard] allow more errors, add test with 2 @Inject properites
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 15, 2017
1 parent ea56890 commit 96dbd05
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php


class SomePresenter
{
/**
* @var stdClass
* @inject
*/
public $stdClass;

/**
* @var DateTime
* @inject
*/
public $dateTime;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php


class SomePresenter
{
/**
* @var stdClass
*/
private $stdClass;

/**
* @var DateTime
*/
private $dateTime;

public function inject(stdClass $stdClass)
{
$this->stdClass = $stdClass;
}

public function __construct(DateTime $dateTime)
{
$this->dateTime = $dateTime;
}
}

0 comments on commit 96dbd05

Please sign in to comment.