PAGI\Client\Result\ExecResult::__construct PHP Method

__construct() public method

Constructor.
public __construct ( PAGI\Client\Result\IResult $result ) : void
$result PAGI\Client\Result\IResult Result to decorate.
return void
    public function __construct(IResult $result)
    {
        parent::__construct($result);
        if ($result->isResult(-2)) {
            throw new ExecuteCommandException('Failed to execute');
        }
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param IResult $result Result to decorate.
  *
  * @return void
  */
 public function __construct(IResult $result)
 {
     parent::__construct($result);
 }
All Usage Examples Of PAGI\Client\Result\ExecResult::__construct
ExecResult