Exemple #1
0
 /**
  * Returns whether a given value is equal to this Response instance
  *
  * @param  var cmp
  * @return bool
  */
 public function equals($cmp)
 {
     return parent::equals($cmp) && (null === $this->payload ? null === $cmp->payload : $this->payload->equals($cmp->payload));
 }
 /**
  * Returns whether a given value is equal to this Response instance
  *
  * @param  var cmp
  * @return bool
  */
 public function equals($cmp)
 {
     return parent::equals($cmp) && $this->mediaType === $cmp->mediaType && $this->contentLength === $cmp->contentLength && Objects::equal($this->inputStream, $cmp->inputStream);
 }