Example #1
0
 /**
  * {@inheritdoc}
  */
 public function flush()
 {
     return $this->_delegate->flush();
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function setBody(tubepress_api_streams_StreamInterface $tubePressBody = null)
 {
     $puzzleBody = null;
     if ($tubePressBody) {
         if ($tubePressBody instanceof tubepress_http_impl_puzzle_streams_PuzzleBasedStream) {
             $puzzleBody = $tubePressBody->getUnderlyingPuzzleStream();
         } else {
             $puzzleBody = new tubepress_http_impl_puzzle_streams_PuzzleStream($tubePressBody);
         }
     }
     $this->_delegate->setBody($puzzleBody);
     return $this;
 }