PHP Classes

File: tests/_resources/XrClientTesterStop.php

Recommend this page to a friend!
  Classes of Rodolfo Berrios Arce   XR PHP Debugger Online   tests/_resources/XrClientTesterStop.php   Download  
File: tests/_resources/XrClientTesterStop.php
Role: Class source
Content type: text/plain
Description: Class source
Class: XR PHP Debugger Online
Debug PHP code using a Web interface
Author: By
Last change:
Date: 2 years ago
Size: 835 bytes
 

Contents

Class file image Download
<?php

/*
 * This file is part of Chevere.
 *
 * (c) Rodolfo Berrios <rodolfo@chevere.org>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace
Chevere\Xr\Tests\_resources;

use function
Chevere\Message\message;
use
Chevere\Xr\Exceptions\XrStopException;
use
Chevere\Xr\Interfaces\XrClientInterface;
use
Chevere\Xr\Interfaces\XrMessageInterface;
use
Chevere\Xr\Traits\XrClientTrait;

final class
XrClientTesterStop implements XrClientInterface
{
    use
XrClientTrait;

    public function
sendPause(XrMessageInterface $message): void
   
{
        throw new
XrStopException(
           
message('stop')
        );
    }

    public function exit(
int $exitCode = 0): void
   
{
        echo
"exit $exitCode";
    }
}