Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Output / Statistics / ScenarioStat.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Behat\Output\Statistics;
12
13 /**
14  * Behat scenario stat.
15  *
16  * @author Konstantin Kudryashov <ever.zet@gmail.com>
17  */
18 final class ScenarioStat
19 {
20     /**
21      * @var string
22      */
23     private $title;
24     /**
25      * @var string
26      */
27     private $path;
28     /**
29      * @var integer
30      */
31     private $resultCode;
32
33     /**
34      * Initializes scenario stat.
35      *
36      * @param string  $title
37      * @param string  $path
38      * @param integer $resultCode
39      */
40     public function __construct($title, $path, $resultCode)
41     {
42         $this->title = $title;
43         $this->path = $path;
44         $this->resultCode = $resultCode;
45     }
46
47     /**
48      * Returns scenario title.
49      *
50      * @return string
51      */
52     public function getTitle()
53     {
54         return $this->title;
55     }
56
57     /**
58      * Returns scenario path.
59      *
60      * @return string
61      */
62     public function getPath()
63     {
64         return $this->path;
65     }
66
67     /**
68      * Returns scenario result code.
69      *
70      * @return integer
71      */
72     public function getResultCode()
73     {
74         return $this->resultCode;
75     }
76
77     /**
78      * Returns string representation for a stat.
79      *
80      * @return string
81      */
82     public function __toString()
83     {
84         return $this->getPath();
85     }
86 }