Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/PayPal/paypal/rest-api-sdk-php/lib/PayPal/Api/FileAttachment.php
Строк: 44
<?php

namespace PayPalApi;

use 
PayPalCommonPayPalModel;
use 
PayPalValidationUrlValidator;

/**
 * Class FileAttachment
 *
 * File attached to an invoice or template
 *
 * @package PayPalApi
 *
 * @property string name
 * @property string url
 */
class FileAttachment extends PayPalModel
{
    
/**
     * Name of the file attached.
     *
     * @param string $name
     * 
     * @return $this
     */
    
public function setName($name)
    {
        
$this->name $name;
        return 
$this;
    }

    
/**
     * Name of the file attached.
     *
     * @return string
     */
    
public function getName()
    {
        return 
$this->name;
    }

    
/**
     * URL of the attached file that can be downloaded.
     *
     * @param string $url
     * @throws InvalidArgumentException
     * @return $this
     */
    
public function setUrl($url)
    {
        
UrlValidator::validate($url"Url");
        
$this->url $url;
        return 
$this;
    }

    
/**
     * URL of the attached file that can be downloaded.
     *
     * @return string
     */
    
public function getUrl()
    {
        return 
$this->url;
    }

}
Онлайн: 2
Реклама