public function source($src)
    {
        $this->source = $this->getImageInfo($src);

        $type              = $this->source['type'];
        $createFrom        = 'ImageCreateFrom' . $type;
        $this->sourceImage = $createFrom($src);

        return $this;
    }
public function source($src)
    {
        $this->source = $this->getImageInfo($src);

        $type              = $this->source['type'];
        $createFrom        = 'ImageCreateFrom' . $type;
        $this->sourceImage = $createFrom($src);

        return $this;
    }
public function source ( $ src ) { $ this -> source = $ this -> getImageInfo ( $ src ) ; $ type = $ this -> source [ 'type' ] ; $ createFrom = 'ImageCreateFrom' . $ type ; $ this -> sourceImage = $ createFrom ( $ src ) ; return $ this ; }
Set local image source

@param string $src
@return $this
Set local image source