for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Subscription helpers.
*
* @package WooCommerce\Payments\Tests
*/
* Class WC_Subscription.
* This helper class should ONLY be used for unit tests!.
class WC_Subscription {
* Helper variable for mocking get_related_orders.
* @var array
public $related_orders;
public function get_related_orders( $type ) {
$type
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return $this->related_orders;
}
public function set_related_orders( $array ) {
$this->related_orders = $array;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.