PayPal\Api\Incentive::setLogoImageUrl PHP Method

setLogoImageUrl() public method

Logo image url for the incentive.
public setLogoImageUrl ( string $logo_image_url )
$logo_image_url string
    public function setLogoImageUrl($logo_image_url)
    {
        UrlValidator::validate($logo_image_url, "LogoImageUrl");
        $this->logo_image_url = $logo_image_url;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage LogoImageUrl is not a fully qualified URL
  */
 public function testUrlValidationForLogoImageUrl()
 {
     $obj = new Incentive();
     $obj->setLogoImageUrl(null);
 }