forked from LiveCarta/PayPal-PHP-SDK
Updated Payment APIs
- Updated SDK Models to latest Payment APIs - Updated Unit Tests
This commit is contained in:
65
lib/PayPal/Api/Measurement.php
Normal file
65
lib/PayPal/Api/Measurement.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Api;
|
||||
|
||||
use PayPal\Common\PayPalModel;
|
||||
|
||||
/**
|
||||
* Class Measurement
|
||||
*
|
||||
* Measurement to represent item dimensions like length, width, height and weight etc.
|
||||
*
|
||||
* @package PayPal\Api
|
||||
*
|
||||
* @property string value
|
||||
* @property string unit
|
||||
*/
|
||||
class Measurement extends PayPalModel
|
||||
{
|
||||
/**
|
||||
* Value this measurement represents.
|
||||
*
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Value this measurement represents.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unit in which the value is represented.
|
||||
*
|
||||
* @param string $unit
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUnit($unit)
|
||||
{
|
||||
$this->unit = $unit;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unit in which the value is represented.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUnit()
|
||||
{
|
||||
return $this->unit;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user