Skip to content

Commit

Permalink
Fix annotation multiple types
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw committed Aug 22, 2015
1 parent fb8432d commit c61f84c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions More/EAV/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Attribute implements ValueAccessInterface
{
/**
* @var array|Value[]|ValueInterface[]
* @var ValueInterface[]
*/
private $values = array();

Expand All @@ -18,15 +18,15 @@ class Attribute implements ValueAccessInterface
private $name;

/**
* @return array|Value[]|ValueInterface[]
* @return ValueInterface[]
*/
public function getValues()
{
return $this->values;
}

/**
* @param Value|ValueInterface $value
* @param ValueInterface $value
* @return $this
*/
public function addValue(ValueInterface $value)
Expand All @@ -38,7 +38,7 @@ public function addValue(ValueInterface $value)
}

/**
* @param Value|ValueInterface $value
* @param ValueInterface $value
* @return $this
*/
public function removeValue(ValueInterface $value)
Expand Down
8 changes: 4 additions & 4 deletions More/EAV/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Entity implements ValueAccessInterface
{
/**
* @var array|Value[]|ValueInterface[]
* @var ValueInterface[]
*/
private $values = array();

Expand All @@ -18,15 +18,15 @@ class Entity implements ValueAccessInterface
private $name;

/**
* @return array|Value[]|ValueInterface[]
* @return ValueInterface[]
*/
public function getValues()
{
return $this->values;
}

/**
* @param Value|ValueInterface $value
* @param ValueInterface $value
* @return $this
*/
public function addValue(ValueInterface $value)
Expand All @@ -38,7 +38,7 @@ public function addValue(ValueInterface $value)
}

/**
* @param Value|ValueInterface $value
* @param ValueInterface $value
* @return $this
*/
public function removeValue(ValueInterface $value)
Expand Down
6 changes: 3 additions & 3 deletions More/EAV/ValueAccessInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
interface ValueAccessInterface
{
/**
* @return Value[]|ValueInterface[]|array
* @return ValueInterface[]
*/
public function getValues();

/**
* @param Value|ValueInterface $value
* @param ValueInterface $value
*/
public function addValue(ValueInterface $value);

/**
* @param Value|ValueInterface $value
* @param ValueInterface $value
*/
public function removeValue(ValueInterface $value);
}

0 comments on commit c61f84c

Please sign in to comment.