Skip to content

Commit

Permalink
Fixed class names in the phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jun 17, 2012
1 parent 3d2cc45 commit 3fadd3a
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
11 changes: 8 additions & 3 deletions src/Knp/Menu/Matcher/Matcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Matcher implements MatcherInterface
private $cache;

/**
* @var \Knp\Menu\Matcher\Voter\VoterInterface[]
* @var VoterInterface[]
*/
private $voters = array();

Expand All @@ -22,6 +22,11 @@ public function __construct()
$this->cache = new \SplObjectStorage();
}

/**
* Adds a voter in the matcher.
*
* @param VoterInterface $voter
*/
public function addVoter(VoterInterface $voter)
{
$this->voters[] = $voter;
Expand All @@ -30,7 +35,7 @@ public function addVoter(VoterInterface $voter)
/**
* Checks whether an item is current.
*
* @param \Knp\Menu\ItemInterface $item
* @param ItemInterface $item
* @return boolean
*/
public function isCurrent(ItemInterface $item)
Expand Down Expand Up @@ -60,7 +65,7 @@ public function isCurrent(ItemInterface $item)
/**
* Checks whether an item is the ancestor of a current item.
*
* @param \Knp\Menu\ItemInterface $item
* @param ItemInterface $item
* @param integer $depth The max depth to look for the item
* @return boolean
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Knp/Menu/Matcher/MatcherInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ interface MatcherInterface
/**
* Checks whether an item is current.
*
* @param \Knp\Menu\ItemInterface $item
* @param ItemInterface $item
* @return boolean
*/
function isCurrent(ItemInterface $item);

/**
* Checks whether an item is the ancestor of a current item.
*
* @param \Knp\Menu\ItemInterface $item
* @param ItemInterface $item
* @param integer $depth The max depth to look for the item
* @return boolean
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/Menu/Matcher/Voter/UriVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function setUri($uri)
* If the voter is not able to determine a result,
* it should return null to let other voters do the job.
*
* @param \Knp\Menu\ItemInterface $item
* @param ItemInterface $item
* @return boolean|null
*/
public function matchItem(ItemInterface $item)
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/Menu/Matcher/Voter/VoterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface VoterInterface
* If the voter is not able to determine a result,
* it should return null to let other voters do the job.
*
* @param \Knp\Menu\ItemInterface $item
* @param ItemInterface $item
* @return boolean|null
*/
function matchItem(ItemInterface $item);
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/Menu/Renderer/ListRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ListRenderer extends Renderer implements RendererInterface
private $defaultOptions;

/**
* @param \Knp\Menu\Matcher\MatcherInterface $matcher
* @param MatcherInterface $matcher
* @param array $defaultOptions
* @param string $charset
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Knp/Menu/Renderer/TwigRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TwigRenderer implements RendererInterface
/**
* @param \Twig_Environment $environment
* @param string $template
* @param \Knp\Menu\Matcher\MatcherInterface $matcher
* @param MatcherInterface $matcher
* @param array $defaultOptions
*/
public function __construct(\Twig_Environment $environment, $template, MatcherInterface $matcher, array $defaultOptions = array())
Expand Down
4 changes: 2 additions & 2 deletions src/Knp/Menu/Silex/Voter/RouteVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class RouteVoter implements VoterInterface
{
/**
* @var \Symfony\Component\HttpFoundation\Request
* @var Request
*/
private $request;

Expand All @@ -27,7 +27,7 @@ public function setRequest(Request $request)
* If the voter is not able to determine a result,
* it should return null to let other voters do the job.
*
* @param \Knp\Menu\ItemInterface $item
* @param ItemInterface $item
* @return boolean|null
*/
public function matchItem(ItemInterface $item)
Expand Down
2 changes: 1 addition & 1 deletion tests/Knp/Menu/Tests/Renderer/AbstractRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abstract class AbstractRendererTest extends TestCase
protected $renderer;

/**
* @var \Knp\Menu\Matcher\MatcherInterface
* @var MatcherInterface
*/
private $matcher;

Expand Down

0 comments on commit 3fadd3a

Please sign in to comment.