Skip to content

Commit

Permalink
Annotations fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemix committed Jun 17, 2015
1 parent 48210ba commit cf67ea9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/Service/AnnotationExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use Doctrine\Common\Annotations\AnnotationReader;
use mxdiModule\Annotation\Annotation;
use mxdiModule\Annotation\Inject;
use mxdiModule\Annotation\InjectParams;

class AnnotationExtractor
Expand All @@ -17,7 +18,7 @@ public function __construct(AnnotationReader $reader = null)

/**
* @param string $fqcn
* @return \mxdiModule\Annotation\InjectParams|null
* @return InjectParams|null
*/
public function getConstructorInjections($fqcn)
{
Expand All @@ -35,7 +36,7 @@ public function getConstructorInjections($fqcn)
* Get methods injections (except the constructor).
*
* @param string $fqcn
* @return \mxdiModule\Annotation\InjectParams[]
* @return InjectParams[]
*/
public function getMethodsInjections($fqcn)
{
Expand Down Expand Up @@ -66,7 +67,7 @@ public function getMethodsInjections($fqcn)
* Get properties injections (except the constructor).
*
* @param string $fqcn
* @return \mxdiModule\Annotation\Inject[]
* @return Inject[]
*/
public function getPropertiesInjections($fqcn)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Service/ChangeSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ class ChangeSet
/** @var bool */
protected $hasSimpleConstructor;

/** @var InjectParams|null */
/** @var InjectParams[] */
protected $methodsInjections;

/** @var array|Inject[] */
/** @var Inject[] */
protected $propertiesInjections;

/** @var bool */
Expand All @@ -31,7 +31,7 @@ public function __construct(AnnotationExtractor $extractor, $fqcn)

$this->isAnnotated =
$this->constructorInjections ||
$this->methodsInjections ||
count($this->methodsInjections) ||
count($this->propertiesInjections);
}

Expand Down

0 comments on commit cf67ea9

Please sign in to comment.