~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/guzzlehttp/streams/src/NoSeekStream.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
namespace GuzzleHttp\Stream;
 
3
 
 
4
/**
 
5
 * Stream decorator that prevents a stream from being seeked
 
6
 */
 
7
class NoSeekStream implements StreamInterface, MetadataStreamInterface
 
8
{
 
9
    use StreamDecoratorTrait;
 
10
 
 
11
    public function seek($offset, $whence = SEEK_SET)
 
12
    {
 
13
        return false;
 
14
    }
 
15
 
 
16
    public function isSeekable()
 
17
    {
 
18
        return false;
 
19
    }
 
20
}