Skip to content

Commit

Permalink
Fix #370: Update ImageInterface docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
romainneutron committed Nov 8, 2014
1 parent 10e9522 commit e9842b8
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/Imagine/Gd/Image.php
Expand Up @@ -84,6 +84,8 @@ public function getGdResource()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
final public function copy()
{
Expand All @@ -99,6 +101,8 @@ final public function copy()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
final public function crop(PointInterface $start, BoxInterface $size)
{
Expand All @@ -124,6 +128,8 @@ final public function crop(PointInterface $start, BoxInterface $size)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
final public function paste(ImageInterface $image, PointInterface $start)
{
Expand Down Expand Up @@ -151,6 +157,8 @@ final public function paste(ImageInterface $image, PointInterface $start)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
final public function resize(BoxInterface $size, $filter = ImageInterface::FILTER_UNDEFINED)
{
Expand Down Expand Up @@ -182,6 +190,8 @@ final public function resize(BoxInterface $size, $filter = ImageInterface::FILTE

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
final public function rotate($angle, ColorInterface $background = null)
{
Expand All @@ -200,6 +210,8 @@ final public function rotate($angle, ColorInterface $background = null)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
final public function save($path = null, array $options = array())
{
Expand All @@ -225,6 +237,8 @@ final public function save($path = null, array $options = array())

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function show($format, array $options = array())
{
Expand Down Expand Up @@ -256,6 +270,8 @@ public function __toString()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
final public function flipHorizontally()
{
Expand All @@ -279,6 +295,8 @@ final public function flipHorizontally()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
final public function flipVertically()
{
Expand All @@ -302,6 +320,8 @@ final public function flipVertically()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
final public function strip()
{
Expand Down Expand Up @@ -335,6 +355,8 @@ public function getSize()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function applyMask(ImageInterface $mask)
{
Expand Down Expand Up @@ -367,6 +389,8 @@ public function applyMask(ImageInterface $mask)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function fill(FillInterface $fill)
{
Expand Down
24 changes: 24 additions & 0 deletions lib/Imagine/Gmagick/Image.php
Expand Up @@ -88,6 +88,8 @@ public function getGmagick()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function copy()
{
Expand All @@ -96,6 +98,8 @@ public function copy()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function crop(PointInterface $start, BoxInterface $size)
{
Expand All @@ -114,6 +118,8 @@ public function crop(PointInterface $start, BoxInterface $size)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function flipHorizontally()
{
Expand All @@ -128,6 +134,8 @@ public function flipHorizontally()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function flipVertically()
{
Expand All @@ -142,6 +150,8 @@ public function flipVertically()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function strip()
{
Expand All @@ -157,6 +167,8 @@ public function strip()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function paste(ImageInterface $image, PointInterface $start)
{
Expand All @@ -179,6 +191,8 @@ public function paste(ImageInterface $image, PointInterface $start)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function resize(BoxInterface $size, $filter = ImageInterface::FILTER_UNDEFINED)
{
Expand Down Expand Up @@ -216,6 +230,8 @@ public function resize(BoxInterface $size, $filter = ImageInterface::FILTER_UNDE

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function rotate($angle, ColorInterface $background = null)
{
Expand Down Expand Up @@ -301,6 +317,8 @@ private function applyImageOptions(\Gmagick $image, array $options, $path)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function save($path = null, array $options = array())
{
Expand All @@ -323,6 +341,8 @@ public function save($path = null, array $options = array())

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function show($format, array $options = array())
{
Expand Down Expand Up @@ -420,6 +440,8 @@ public function getSize()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function applyMask(ImageInterface $mask)
{
Expand Down Expand Up @@ -462,6 +484,8 @@ public function mask()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function fill(FillInterface $fill)
{
Expand Down
2 changes: 2 additions & 0 deletions lib/Imagine/Image/AbstractImage.php
Expand Up @@ -23,6 +23,8 @@ abstract class AbstractImage implements ImageInterface

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function thumbnail(BoxInterface $size, $mode = ImageInterface::THUMBNAIL_INSET, $filter = ImageInterface::FILTER_UNDEFINED)
{
Expand Down
24 changes: 24 additions & 0 deletions lib/Imagine/Imagick/Image.php
Expand Up @@ -99,6 +99,8 @@ public function getImagick()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function copy()
{
Expand All @@ -117,6 +119,8 @@ public function copy()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function crop(PointInterface $start, BoxInterface $size)
{
Expand All @@ -137,6 +141,8 @@ public function crop(PointInterface $start, BoxInterface $size)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function flipHorizontally()
{
Expand All @@ -151,6 +157,8 @@ public function flipHorizontally()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function flipVertically()
{
Expand All @@ -165,6 +173,8 @@ public function flipVertically()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function strip()
{
Expand All @@ -180,6 +190,8 @@ public function strip()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function paste(ImageInterface $image, PointInterface $start)
{
Expand All @@ -202,6 +214,8 @@ public function paste(ImageInterface $image, PointInterface $start)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function resize(BoxInterface $size, $filter = ImageInterface::FILTER_UNDEFINED)
{
Expand All @@ -216,6 +230,8 @@ public function resize(BoxInterface $size, $filter = ImageInterface::FILTER_UNDE

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function rotate($angle, ColorInterface $background = null)
{
Expand All @@ -237,6 +253,8 @@ public function rotate($angle, ColorInterface $background = null)

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function save($path = null, array $options = array())
{
Expand All @@ -257,6 +275,8 @@ public function save($path = null, array $options = array())

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function show($format, array $options = array())
{
Expand Down Expand Up @@ -375,6 +395,8 @@ public function getSize()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function applyMask(ImageInterface $mask)
{
Expand Down Expand Up @@ -425,6 +447,8 @@ public function mask()

/**
* {@inheritdoc}
*
* @return ImageInterface
*/
public function fill(FillInterface $fill)
{
Expand Down

0 comments on commit e9842b8

Please sign in to comment.