src/Entity/PayU.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiProperty;
  4. use App\Entity\Trait\IdTrait;
  5. use App\Entity\Trait\TimestampableTrait;
  6. use App\Repository\PayURepository;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassPayURepository::class)]
  9. class PayU
  10. {
  11.     use IdTrait;
  12.     use TimestampableTrait;
  13.     #[ORM\Column(type'string'length63nullabletrue)]
  14.     #[ApiProperty(description'Access token')]
  15.     protected ?string $accessToken null;
  16.     #[ORM\Column(type'string'length63nullabletrue)]
  17.     #[ApiProperty(description'Type token')]
  18.     protected ?string $tokenType null;
  19.     #[ORM\Column(type'string'length31nullabletrue)] //nie pamietam czemu tu jest string a nie timestamp
  20.     #[ApiProperty(description'Expires in')]
  21.     protected ?string $expiresIn null;
  22.     public function __construct()
  23.     {
  24.         $this->createdAt = new \DateTimeImmutable();
  25.         $this->updatedAt = new \DateTimeImmutable();
  26.     }
  27.     public function getAccessToken(): ?string
  28.     {
  29.         return $this->accessToken;
  30.     }
  31.     public function setAccessToken(?string $accessToken): self
  32.     {
  33.         $this->accessToken $accessToken;
  34.         return $this;
  35.     }
  36.     public function getTokenType(): ?string
  37.     {
  38.         return $this->tokenType;
  39.     }
  40.     public function setTokenType(?string $tokenType): self
  41.     {
  42.         $this->tokenType $tokenType;
  43.         return $this;
  44.     }
  45.     public function getExpiresIn(): ?string
  46.     {
  47.         return $this->expiresIn;
  48.     }
  49.     public function setExpiresIn(?string $expiresIn): self
  50.     {
  51.         $this->expiresIn $expiresIn;
  52.         return $this;
  53.     }
  54. }