コード例 #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) && $this->mediaType === $cmp->mediaType && $this->contentLength === $cmp->contentLength && (NULL === $this->inputStream ? NULL === $cmp->inputStream : $this->inputStream->equals($cmp->inputStream));
 }
コード例 #2
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));
 }