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;
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 * @deprecated in favour of StepStatV2 and to be removed in 4.0
44 * Initializes step stat.
48 * @param integer $resultCode
49 * @param null|string $error
50 * @param null|string $stdOut
52 public function __construct($text, $path, $resultCode, $error = null, $stdOut = null)
56 $this->resultCode = $resultCode;
57 $this->error = $error;
58 $this->stdOut = $stdOut;
66 public function getText()
76 public function getPath()
82 * Returns step result code.
86 public function getResultCode()
88 return $this->resultCode;
92 * Returns step error (if has one).
96 public function getError()
102 * Returns step output (if has one).
104 * @return null|string
106 public function getStdOut()
108 return $this->stdOut;
112 * Returns string representation for a stat.
116 public function __toString()
118 return $this->getPath();