-
Адлан Шамавов authoredАдлан Шамавов authored
NewsDetailElement.php 1.64 KiB
<?php
namespace App\Model;
class NewsDetailElement
{
private int $id;
private string $name;
private string $description;
private string $text;
private File $image;
private string $createAt;
private string $seoTitle;
private string $seoDescription;
private string $seoKeywords;
public function __construct(
int $id,
string $name,
string $description,
string $text,
File $image,
string $createAt,
string $seoTitle,
string $seoDescription,
string $seoKeywords
) {
$this->id = $id;
$this->name = $name;
$this->description = $description;
$this->text = $text;
$this->image = $image;
$this->createAt = $createAt;
$this->seoTitle = $seoTitle;
$this->seoDescription = $seoDescription;
$this->seoKeywords = $seoKeywords;
}
public function getId(): int
{
return $this->id;
}
public function getName(): string
{
return $this->name;
}
public function getDescription(): string
{
return $this->description;
}
public function getText(): string
{
return $this->text;
}
public function getImage(): File
{
return $this->image;
}
public function getCreateAt(): string
{
return $this->createAt;
}
public function getSeoTitle(): string
{