Create stubs for WC Bookings

This commit is contained in:
Narek Zakarian 2024-07-22 18:16:42 +04:00
parent 8b5165ddfc
commit 5adb04cb3f
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

14
.psalm/wc-bookings.php Normal file
View file

@ -0,0 +1,14 @@
<?php
/**
* Validate and create a new booking manually.
*
* @version 1.10.7
* @see WC_Booking::new_booking() for available $new_booking_data args
* @param int $product_id you are booking
* @param array $new_booking_data
* @param string $status
* @param bool $exact If false, the function will look for the next available block after your start date if the date is unavailable.
* @return mixed WC_Booking object on success or false on fail
*/
function create_wc_booking( $product_id, $new_booking_data = array(), $status = 'confirmed', $exact = false ) {}