Guest User

Untitled

a guest
Dec 11th, 2020
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.31 KB | None | 0 0
  1. /**
  2.  * @ApiResource(
  3.  *     collectionOperations={
  4.  *         "post"={
  5.  *             "denormalization_context"={"groups"={"bpay_biller_code_sync:create"}},
  6.  *             "openapi_context"={"summary"="Synchronises BPAY biller codes."},
  7.  *             "path"="/bpay-biller-codes/sync",
  8.  *             "security"="is_granted(permission('PERMISSION_BPAY_BILLER_CODE_SYNC'))"
  9.  *         }
  10.  *     },
  11.  *     itemOperations={},
  12.  *     normalizationContext={"groups"={"bpay_biller_code_sync:read"}}
  13.  * )
  14.  */
  15. final class BpayBillerCodeSync extends AbstractApiResource implements NoIriItemInterface
  16. {
  17.     /**
  18.      * Array of objects containing the results of BPAY biller code synchronisation.
  19.      *
  20.      * @ApiProperty(attributes={"openapi_context"={"items"={
  21.      *     "properties"={
  22.      *         "code"={
  23.      *             "description"="BPAY biller code.",
  24.      *             "type"="string"
  25.      *         },
  26.      *         "result"={
  27.      *             "description"="Result of synchronisation.",
  28.      *             "enum"=BpayBillerCodeSyncDataPersister::ALL_RESULTS,
  29.      *             "type"="string"
  30.      *         }
  31.      *     },
  32.      *     "type"="object"}}}
  33.      * )
  34.      *
  35.      * @Groups({"bpay_biller_code_sync:read"})
  36.      *
  37.      * @var mixed[]
  38.      */
  39.     protected array $results = [];
  40. }
Advertisement
Add Comment
Please, Sign In to add comment