<?php
namespace App\DTO\Scholar;
use App\DTO\Channel\ChannelDTO;
class TrainingDTO
{
public function __construct(
private ChannelDTO $channel,
private ?string $id = null,
private ?string $name = null,
private ?string $imageUrl = null,
private ?int $time = null,
private ?string $type = null,
private ?string $diploma = null,
private ?string $price = null,
private ?int $freeLessonsCount = null,
private ?int $cursusCount = null,
private ?float $adviceAvg = null,
)
{
}
public function getId(): ?string
{
return $this->id;
}
public function setId(?string $id): static
{
$this->id = $id;
return $this;
}
public function getChannel(): ChannelDTO
{
return $this->channel;
}
public function setChannel(ChannelDTO $channel): static
{
$this->channel = $channel;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): static
{
$this->name = $name;
return $this;
}
public function getImageUrl(): ?string
{
return $this->imageUrl;
}
public function setImageUrl(?string $imageUrl): static
{
$this->imageUrl = $imageUrl;
return $this;
}
public function getTime(): ?int
{
return $this->time;
}
public function setTime(?int $time): static
{
$this->time = $time;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): static
{
$this->type = $type;
return $this;
}
public function getDiploma(): ?string
{
return $this->diploma;
}
public function setDiploma(?string $diploma): static
{
$this->diploma = $diploma;
return $this;
}
public function getPrice(): ?string
{
return $this->price;
}
public function setPrice(?string $price): static
{
$this->price = $price;
return $this;
}
public function getFreeLessonsCount(): ?int
{
return $this->freeLessonsCount;
}
public function setFreeLessonsCount(?int $freeLessonsCount): static
{
$this->freeLessonsCount = $freeLessonsCount;
return $this;
}
public function getCursusCount(): ?int
{
return $this->cursusCount;
}
public function setCursusCount(?int $cursusCount): static
{
$this->cursusCount = $cursusCount;
return $this;
}
public function getAdviceAvg(): ?float
{
return $this->adviceAvg;
}
public function setAdviceAvg(?float $adviceAvg): static
{
$this->adviceAvg = $adviceAvg;
return $this;
}
}