AI
1 year ago
Agentic
7 months ago
AbstractAddressSchema.php
1 year ago
AbstractSchema.php
1 month ago
BatchSchema.php
2 years ago
BillingAddressSchema.php
2 years ago
CartCouponSchema.php
1 year ago
CartExtensionsSchema.php
1 year ago
CartFeeSchema.php
2 years ago
CartItemSchema.php
1 month ago
CartSchema.php
2 months ago
CartShippingRateSchema.php
1 month ago
CheckoutOrderSchema.php
2 years ago
CheckoutSchema.php
1 month ago
ErrorSchema.php
2 years ago
ImageAttachmentSchema.php
3 months ago
ItemSchema.php
11 months ago
OrderCouponSchema.php
2 years ago
OrderFeeSchema.php
2 years ago
OrderItemSchema.php
1 month ago
OrderSchema.php
2 months ago
PatternsSchema.php
1 year ago
ProductAttributeSchema.php
2 years ago
ProductAttributeTermSchema.php
1 month ago
ProductBrandSchema.php
1 year ago
ProductCategorySchema.php
2 years ago
ProductCollectionDataSchema.php
11 months ago
ProductReviewSchema.php
2 years ago
ProductSchema.php
1 month ago
ShippingAddressSchema.php
2 years ago
ShopperListItemSchema.php
1 month ago
ShopperListSchema.php
1 month ago
TermSchema.php
2 years ago
PatternsSchema.php
46 lines
| 1 | <?php |
| 2 | declare( strict_types = 1 ); |
| 3 | |
| 4 | namespace Automattic\WooCommerce\StoreApi\Schemas\V1; |
| 5 | |
| 6 | /** |
| 7 | * OrderSchema class. |
| 8 | */ |
| 9 | class PatternsSchema extends AbstractSchema { |
| 10 | /** |
| 11 | * The schema item name. |
| 12 | * |
| 13 | * @var string |
| 14 | */ |
| 15 | protected $title = 'patterns'; |
| 16 | |
| 17 | /** |
| 18 | * The schema item identifier. |
| 19 | * |
| 20 | * @var string |
| 21 | */ |
| 22 | const IDENTIFIER = 'patterns'; |
| 23 | |
| 24 | /** |
| 25 | * Patterns schema properties. |
| 26 | * |
| 27 | * @return array |
| 28 | */ |
| 29 | public function get_properties() { |
| 30 | return []; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Get the Patterns response. |
| 35 | * |
| 36 | * @param array $item Item to get response for. |
| 37 | * |
| 38 | * @return array |
| 39 | */ |
| 40 | public function get_item_response( $item ) { |
| 41 | return [ |
| 42 | 'success' => true, |
| 43 | ]; |
| 44 | } |
| 45 | } |
| 46 |