public function attachImage($image)
    {
        $this->mms = true;

        if (is_array($image)) {
            $this->attachImages = array_merge($this->attachImages, $image);
        } else {
            $this->attachImages[] = $image;
        }
    }
public function attachImage($image)
    {
        $this->mms = true;

        if (is_array($image)) {
            $this->attachImages = array_merge($this->attachImages, $image);
        } else {
            $this->attachImages[] = $image;
        }
    }
public function attachImage ( $ image ) { $ this -> mms = true ; if ( is_array ( $ image ) ) { $ this -> attachImages = array_merge ( $ this -> attachImages , $ image ) ; } else { $ this -> attachImages [ ] = $ image ; } }
Attaches an image to a message.

@param string $image Path to image.
Attaches an image to a message .