1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 12:11:26 +02:00

added missing doc

This commit is contained in:
Oliver Vogel
2013-03-03 20:15:54 +01:00
parent 726b0525d0
commit 8ab5f29e8e

View File

@@ -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;