public function __construct(Rsp $rsp) { $this->rsp = $rsp; parent::__construct('Deleting keyword failed with code: ' . $rsp->getCode()); }
private function guardValueWithdrawnResponseIsSuccessful(Rsp $rsp) { $validCodes = [self::VALUE_WITHDRAWN]; if (!in_array($rsp->getCode(), $validCodes)) { throw new UpdateEventErrorException($rsp); } }
public function __construct(Rsp $rsp) { $this->rsp = $rsp; parent::__construct('Pushing translation to UDB2 collaboration services failed with code: ' . $rsp->getCode()); }