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 * Represents hook stat.
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
38 * Initializes hook stat.
42 * @param null|string $error
43 * @param null|string $stdOut
45 public function __construct($name, $path, $error = null, $stdOut = null)
49 $this->error = $error;
50 $this->stdOut = $stdOut;
56 public function getName()
64 public function isSuccessful()
66 return null === $this->error;
70 * Returns hook standard output (if has some).
74 public function getStdOut()
80 * Returns hook exception.
84 public function getError()
94 public function getPath()