%PDF- %PDF-
Direktori : /proc/19851/cwd/wp-content/plugins/event-tickets/src/Tribe/Commerce/PayPal/Oversell/ |
Current File : //proc/19851/cwd/wp-content/plugins/event-tickets/src/Tribe/Commerce/PayPal/Oversell/Sell_All.php |
<?php /** * Class Tribe__Tickets__Commerce__PayPal__Oversell__Sell_All * * This policy allows selling what is available and what is not in inventory making a real oversell. * * @since 4.7 */ class Tribe__Tickets__Commerce__PayPal__Oversell__Sell_All extends Tribe__Tickets__Commerce__PayPal__Oversell__Policy { /** * Whether this policy allows overselling or not. * * @since 4.7 * * @return bool */ public function allows_overselling() { return true; } /** * Modifies the quantity of tickets that can actually be over-sold according to * this policy. * * @since 4.7 * * @param int $qty The requested quantity * @param int $inventory The current inventory value * * @return int The updated quantity */ public function modify_quantity( $qty, $inventory ) { return $qty; } /** * Returns the policy nice name. * * @since 4.7 * * @return string */ public function get_name() { return __( 'Oversell all requested', 'event-tickets' ); } }