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\Output\Statistics;
14 * Behat scenario stat.
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 final class ScenarioStat
34 * Initializes scenario stat.
36 * @param string $title
38 * @param integer $resultCode
40 public function __construct($title, $path, $resultCode)
42 $this->title = $title;
44 $this->resultCode = $resultCode;
48 * Returns scenario title.
52 public function getTitle()
58 * Returns scenario path.
62 public function getPath()
68 * Returns scenario result code.
72 public function getResultCode()
74 return $this->resultCode;
78 * Returns string representation for a stat.
82 public function __toString()
84 return $this->getPath();