⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.180
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ubuntu
/
vendor
/
mercadopago
/
dx-php
/
tests
/
View File Name :
DummyEntity.php
<?php namespace MercadoPago; use MercadoPago\Annotation\RestMethod; use MercadoPago\Annotation\RequestParam; use MercadoPago\Annotation\Attribute; /** * @RestMethod(resource="/dummies", method="list") * @RestMethod(resource="/dummy/:id", method="read") * @RestMethod(resource="/dummy/:id", method="update") * @RestMethod(resource="/v1/payments", method="create") * @RestMethod(resource="/v1/dummies/search", method="search") * @RequestParam(param="access_token") */ class DummyEntity extends Entity { /** * @Attribute(primaryKey = true, type="string", idempotency=true) */ protected $id; /** * @Attribute(type = "string") */ protected $title; /** * @Attribute(type = "string") */ protected $email; /** * @Attribute(type = "string") */ protected $desc; /** * @Attribute(type = "float") */ protected $price; /** * @Attribute(type = "int") */ protected $quantity; /** * @Attribute(type = "date") */ protected $registered_at; /** * @Attribute(type = "stdClass") */ protected $object; /** * @Attribute() */ protected $other; /** * @Attribute(readOnly="true") */ protected $readOnlyAttribute; /** * @Attribute(maxLength=20) */ protected $maxLengthAttribute; }