Order.php 651 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace internship\bo;
  3. use n2n\reflection\ObjectAdapter;
  4. class Order extends ObjectAdapter implements \JsonSerializable {
  5. /*private static function _annos(AnnoInit $ai) {
  6. $ai->p('address', new AnnoEmbedded(Address::getClass()),
  7. new AnnoAttributeOverrides(array('forename' => 'bill_forename',
  8. 'surname' => 'bill_surname')));
  9. $ai->p('deliveryAddress', new AnnoEmbedded(Address::getClass(), 'delivery_'));
  10. }*/
  11. public int $id;
  12. public string $productName;
  13. public string $address;
  14. public string $deliveryAddress;
  15. // getter / setter
  16. public function jsonSerialize(): mixed {
  17. // TODO: Implement jsonSerialize() method.
  18. }
  19. }