for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Everlution\Navigation\Voter\Exact;
use Everlution\Navigation\Voter\MatchVoter;
/**
* Class ExactVoter.
* @author Ivan Barlog <[email protected]>
*/
class ExactVoter extends MatchVoter
{
* @param string $haystack
* @param string $needle
* @return bool
public function matches(string $haystack, string $needle): bool
return $haystack === $needle;
}