KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/irtiweb/CATS/vendor/behat/behat/src/Behat/Behat/Output/Statistics/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/irtiweb/CATS/vendor/behat/behat/src/Behat/Behat/Output/Statistics/StepStat.php
<?php

/*
 * This file is part of the Behat.
 * (c) Konstantin Kudryashov <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Behat\Behat\Output\Statistics;

/**
 * Behat step stat.
 *
 * @author Konstantin Kudryashov <[email protected]>
 */
final class StepStat
{
    /**
     * @var string
     */
    private $text;
    /**
     * @var string
     */
    private $path;
    /**
     * @var integer
     */
    private $resultCode;
    /**
     * @var null|string
     */
    private $error;
    /**
     * @var null|string
     */
    private $stdOut;

    /**
     * Initializes step stat.
     *
     * @param string      $text
     * @param string      $path
     * @param integer     $resultCode
     * @param null|string $error
     * @param null|string $stdOut
     */
    public function __construct($text, $path, $resultCode, $error = null, $stdOut = null)
    {
        $this->text = $text;
        $this->path = $path;
        $this->resultCode = $resultCode;
        $this->error = $error;
        $this->stdOut = $stdOut;
    }

    /**
     * Returns step text.
     *
     * @return string
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Returns step path.
     *
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * Returns step result code.
     *
     * @return integer
     */
    public function getResultCode()
    {
        return $this->resultCode;
    }

    /**
     * Returns step error (if has one).
     *
     * @return null|string
     */
    public function getError()
    {
        return $this->error;
    }

    /**
     * Returns step output (if has one).
     *
     * @return null|string
     */
    public function getStdOut()
    {
        return $this->stdOut;
    }

    /**
     * Returns string representation for a stat.
     *
     * @return string
     */
    public function __toString()
    {
        return $this->getPath();
    }
}

Anon7 - 2021