Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Tester / Result / IntegerTestResult.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\Testwork\Tester\Result;
12
13 /**
14  * Represents an integer test result.
15  *
16  * @author Konstantin Kudryashov <ever.zet@gmail.com>
17  */
18 final class IntegerTestResult implements TestResult
19 {
20     /**
21      * @var integer
22      */
23     private $resultCode;
24
25     /**
26      * Initializes test result.
27      *
28      * @param integer $resultCode
29      */
30     public function __construct($resultCode)
31     {
32         $this->resultCode = $resultCode;
33     }
34
35     /**
36      * {@inheritdoc}
37      */
38     public function isPassed()
39     {
40         return self::PASSED == $this->getResultCode();
41     }
42
43     /**
44      * {@inheritdoc}
45      */
46     public function getResultCode()
47     {
48         return $this->resultCode;
49     }
50 }