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\Definition\Pattern;
14 * Step definition pattern.
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 private $canonicalText;
31 private $placeholderCount;
34 * Initializes pattern.
36 * @param string $canonicalText
37 * @param string $pattern
38 * @param integer $placeholderCount
40 public function __construct($canonicalText, $pattern, $placeholderCount = 0)
42 $this->canonicalText = $canonicalText;
43 $this->pattern = $pattern;
44 $this->placeholderCount = $placeholderCount;
48 * Returns canonical step text.
52 public function getCanonicalText()
54 return $this->canonicalText;
62 public function getPattern()
64 return $this->pattern;
68 * Returns pattern placeholder count.
72 public function getPlaceholderCount()
74 return $this->placeholderCount;