Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Update stream types
Browse files Browse the repository at this point in the history
  • Loading branch information
stil committed Oct 14, 2016
1 parent 25d21bb commit 6be66a0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

use GIFEndec\Geometry\Point;
use GIFEndec\Geometry\Rectangle;
use GIFEndec\IO\PhpStream;

class Decoder
{
/**
* @var MemoryStream
* @var PhpStream
*/
protected $stream;

Expand Down Expand Up @@ -68,9 +69,9 @@ class Decoder
protected $sortFlag;

/**
* @param MemoryStream $gifStream
* @param PhpStream $gifStream
*/
public function __construct(MemoryStream $gifStream)
public function __construct(PhpStream $gifStream)
{
$this->stream = $gifStream;
}
Expand Down
2 changes: 2 additions & 0 deletions src/Encoder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
namespace GIFEndec;

use GIFEndec\IO\MemoryStream;

class Encoder
{
/**
Expand Down
10 changes: 6 additions & 4 deletions src/Frame.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

use GIFEndec\Geometry\Point;
use GIFEndec\Geometry\Rectangle;
use GIFEndec\IO\MemoryStream;
use GIFEndec\IO\PhpStream;

class Frame
{
/**
* @var MemoryStream Stream storing GIF byte array
* @var PhpStream Stream storing GIF byte array
*/
protected $stream;

Expand Down Expand Up @@ -105,15 +107,15 @@ public function getOffset()
}

/**
* @param MemoryStream $stream
* @param PhpStream $stream
*/
public function setStream(MemoryStream $stream)
public function setStream(PhpStream $stream)
{
$this->stream = $stream;
}

/**
* @return MemoryStream
* @return PhpStream
*/
public function getStream()
{
Expand Down

0 comments on commit 6be66a0

Please sign in to comment.