activity/object/object.php
public function setImage($image)
    {
        if (!is_null($image) && !$image instanceof ComActivitiesActivityMedialinkInterface) {
            throw new InvalidArgumentException('Invalid image type.');
        }

        $this->image = $image;
        return $this;
    }
public function setImage($image)
    {
        if (!is_null($image) && !$image instanceof ComActivitiesActivityMedialinkInterface) {
            throw new InvalidArgumentException('Invalid image type.');
        }

        $this->image = $image;
        return $this;
    }
public function setImage ( $ image ) { if ( ! is_null ( $ image ) && ! $ image instanceof ComActivitiesActivityMedialinkInterface ) { throw new InvalidArgumentException ( 'Invalid image type.' ) ; } $ this -> image = $ image ; return $ this ; }
Set the image.

@link http://activitystrea.ms/specs/json/1.0/#object See image property.

@param ComActivitiesActivityMedialinkInterface|null $image The image.
@return ComActivitiesActivityObject
Set the image .