Cleaned up Code Comments and added Type-Hinting to all Class/Functions

This commit is contained in:
Sammie S. Taunton
2013-12-03 14:29:00 -06:00
parent caa71466fe
commit e63d28723e
30 changed files with 5686 additions and 3407 deletions

View File

@@ -1,77 +1,126 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
class RedirectUrls extends PPModel {
/**
* Url where the payer would be redirected to after approving the payment.
* @param string $return_url
*/
public function setReturnUrl($return_url) {
$this->return_url = $return_url;
return $this;
}
/**
* Class RedirectUrls
*
* @property string return_url
* @property string cancel_url
*/
class RedirectUrls extends PPModel
{
/**
* Set Return URL
* Url where the payer would be redirected to after approving the payment
*
* @param string $return_url
*
* @return $this
*/
public function setReturnUrl($return_url)
{
$this->return_url = $return_url;
/**
* Url where the payer would be redirected to after approving the payment.
* @return string
*/
public function getReturnUrl() {
return $this->return_url;
}
return $this;
}
/**
* Url where the payer would be redirected to after approving the payment.
* @param string $return_url
* @deprecated. Instead use setReturnUrl
*/
public function setReturn_url($return_url) {
$this->return_url = $return_url;
return $this;
}
/**
* Url where the payer would be redirected to after approving the payment.
* @return string
* @deprecated. Instead use getReturnUrl
*/
public function getReturn_url() {
return $this->return_url;
}
/**
* Get Return URL
* Url where the payer would be redirected to after approving the payment
*
* @return string
*/
public function getReturnUrl()
{
return $this->return_url;
}
/**
* Url where the payer would be redirected to after canceling the payment.
* @param string $cancel_url
*/
public function setCancelUrl($cancel_url) {
$this->cancel_url = $cancel_url;
return $this;
}
/**
* Set Return URL
* Url where the payer would be redirected to after approving the payment
*
* @param string $return_url
*
* @deprecated Use setReturnUrl
*
* @return $this
*/
public function setReturn_url($return_url)
{
$this->return_url = $return_url;
/**
* Url where the payer would be redirected to after canceling the payment.
* @return string
*/
public function getCancelUrl() {
return $this->cancel_url;
}
return $this;
}
/**
* Url where the payer would be redirected to after canceling the payment.
* @param string $cancel_url
* @deprecated. Instead use setCancelUrl
*/
public function setCancel_url($cancel_url) {
$this->cancel_url = $cancel_url;
return $this;
}
/**
* Url where the payer would be redirected to after canceling the payment.
* @return string
* @deprecated. Instead use getCancelUrl
*/
public function getCancel_url() {
return $this->cancel_url;
}
/**
* Get Return URL
* Url where the payer would be redirected to after approving the payment
*
* @deprecated Use getReturnUrl
*
* @return string
*/
public function getReturn_url()
{
return $this->return_url;
}
/**
* Set Cancel URL
* Url where the payer would be redirected to after canceling the payment
*
* @param string $cancel_url
*
* @return $this
*/
public function setCancelUrl($cancel_url)
{
$this->cancel_url = $cancel_url;
return $this;
}
/**
* Get Cancel URL
* Url where the payer would be redirected to after canceling the payment
*
* @return string
*/
public function getCancelUrl()
{
return $this->cancel_url;
}
/**
* Set Cancel URL
* Url where the payer would be redirected to after canceling the payment
*
* @param string $cancel_url
*
* @deprecated Use setCancelUrl
*
* @return $this
*/
public function setCancel_url($cancel_url)
{
$this->cancel_url = $cancel_url;
return $this;
}
/**
* Get Cancel URL
* Url where the payer would be redirected to after canceling the payment
*
* @deprecated Use getCancelUrl
*
* @return string
*/
public function getCancel_url()
{
return $this->cancel_url;
}
}