ObjectWithId.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Api\Interfaces; |
| 6 | |
| 7 | use Automattic\WooCommerce\Api\Attributes\Description; |
| 8 | |
| 9 | /** |
| 10 | * Interface trait for objects that have a numeric ID. |
| 11 | */ |
| 12 | #[Description( 'An object with a numeric ID.' )] |
| 13 | trait ObjectWithId { |
| 14 | /** |
| 15 | * The unique numeric identifier. |
| 16 | * |
| 17 | * @var int |
| 18 | */ |
| 19 | #[Description( 'The unique numeric identifier.' )] |
| 20 | public int $id; |
| 21 | } |
| 22 |