src/Entity/PayU.php line 11
<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiProperty;
use App\Entity\Trait\IdTrait;
use App\Entity\Trait\TimestampableTrait;
use App\Repository\PayURepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PayURepository::class)]
class PayU
{
use IdTrait;
use TimestampableTrait;
#[ORM\Column(type: 'string', length: 63, nullable: true)]
#[ApiProperty(description: 'Access token')]
protected ?string $accessToken = null;
#[ORM\Column(type: 'string', length: 63, nullable: true)]
#[ApiProperty(description: 'Type token')]
protected ?string $tokenType = null;
#[ORM\Column(type: 'string', length: 31, nullable: true)] //nie pamietam czemu tu jest string a nie timestamp
#[ApiProperty(description: 'Expires in')]
protected ?string $expiresIn = null;
public function __construct()
{
$this->createdAt = new \DateTimeImmutable();
$this->updatedAt = new \DateTimeImmutable();
}
public function getAccessToken(): ?string
{
return $this->accessToken;
}
public function setAccessToken(?string $accessToken): self
{
$this->accessToken = $accessToken;
return $this;
}
public function getTokenType(): ?string
{
return $this->tokenType;
}
public function setTokenType(?string $tokenType): self
{
$this->tokenType = $tokenType;
return $this;
}
public function getExpiresIn(): ?string
{
return $this->expiresIn;
}
public function setExpiresIn(?string $expiresIn): self
{
$this->expiresIn = $expiresIn;
return $this;
}
}