PAGI\Client\Result\ResultDecorator::__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)
    {
        $this->result = $result;
    }

Usage Example

Example #1
0
 /**
  * Constructor.
  *
  * @param IResult $result Result to decorate.
  *
  * @return void
  */
 public function __construct(IResult $result)
 {
     parent::__construct($result);
     if ($result->isResult(-2)) {
         throw new ExecuteCommandException('Failed to execute');
     }
 }
All Usage Examples Of PAGI\Client\Result\ResultDecorator::__construct