for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPSC\PagSeguro\Requests\Checkout;
use PHPSC\PagSeguro\Customer\Customer;
/**
* @author Luís Otávio Cobucci Oblonczyk <[email protected]>
*/
class Checkout
{
* @var Order
private $order;
* @var Customer
private $customer;
* @var string
private $redirectTo;
* @var int
private $maxUses;
private $maxAge;
private $notificationURL;
* @param Order $order
* @param Customer $customer
$customer
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @param string $redirectTo
$redirectTo
* @param string $maxUses
$maxUses
* @param string $maxAge
$maxAge
public function __construct(Order $order = null)
$this->order = $order ?: new Order();
}
* @return Order
public function getOrder()
return $this->order;
* @return Customer
public function getCustomer()
return $this->customer;
public function setCustomer(Customer $customer)
$this->customer = $customer;
* @return string
public function getRedirectTo()
return $this->redirectTo;
public function setRedirectTo($redirectTo)
$this->redirectTo = $redirectTo;
* @return int
public function getMaxUses()
return $this->maxUses;
* @param int $maxUses
public function setMaxUses($maxUses)
$this->maxUses = $maxUses;
public function getMaxAge()
return $this->maxAge;
* @param int $maxAge
public function setMaxAge($maxAge)
$this->maxAge = $maxAge;
public function getNotificationURL()
return $this->notificationURL;
* @param string $notificationURL
public function setNotificationURL($notificationURL)
$this->notificationURL = $notificationURL;
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.