From 8ab5f29e8e498b5a75b4054f1ead5d71f65b453a Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 3 Mar 2013 20:15:54 +0100 Subject: [PATCH] added missing doc --- src/Intervention/Image/Image.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/Intervention/Image/Image.php b/src/Intervention/Image/Image.php index aadd7f1b..c18c2db4 100644 --- a/src/Intervention/Image/Image.php +++ b/src/Intervention/Image/Image.php @@ -141,6 +141,12 @@ class Image return $image; } + /** + * Set properties for image resource from image file + * + * @param string $path + * @return void + */ private function setPropertiesFromPath($path) { if ( ! $this->filesystem->exists($path)) { @@ -178,6 +184,12 @@ class Image } } + /** + * Set properties for image resource from string + * + * @param string $string + * @return void + */ private function setPropertiesFromString($string) { $this->resource = imagecreatefromstring($string); @@ -187,6 +199,13 @@ class Image $this->original['height'] = $this->height; } + /** + * Set properties for empty image resource + * + * @param int $width + * @param int $height + * @return void + */ private function setPropertiesEmpty($width, $height) { $this->width = is_numeric($width) ? intval($width) : 1;