4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Context\Snippet\Generator;
13 use Behat\Behat\Context\Context;
16 * Identifier that always returns same pattern type.
18 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 final class FixedPatternIdentifier implements PatternIdentifier
28 * Initialises identifier.
30 * @param string $patternType
32 public function __construct($patternType)
34 $this->patternType = $patternType;
40 public function guessPatternType($contextClass)
42 return $this->patternType;