rector.php gets the PHP sets up to 8.5. Mostly constructor promotion with readonly properties, typed class constants, ??=, arrow functions, str_contains/str_starts_with, catch without unused variables, array_any and #[\Override] on overridden properties; array_key_exists() keys are cast to string (null keys are deprecated in PHP 8.5). Long promoted constructor signatures are wrapped one parameter per line. Checked locally: a crawl of ~1,900 frontend URLs over all sites and the backchannel APIs (/api/hotel, /api/product, content feed manifest and records of every type) render the same as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
105 lines
1.5 KiB
PHP
105 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace EP\EpTheme\Domain\Model;
|
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
|
|
|
class Page extends AbstractEntity
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
#[\Override]
|
|
protected ?int $uid = null;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
#[\Override]
|
|
protected ?int $pid = null;
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $hidden;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $title;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $seoTitle;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $description;
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isHidden()
|
|
{
|
|
return $this->hidden;
|
|
}
|
|
|
|
/**
|
|
* @param bool $hidden
|
|
*/
|
|
public function setHidden($hidden)
|
|
{
|
|
$this->hidden = $hidden;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getTitle()
|
|
{
|
|
return $this->title;
|
|
}
|
|
|
|
/**
|
|
* @param string $title
|
|
*/
|
|
public function setTitle($title)
|
|
{
|
|
$this->title = $title;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getSeoTitle()
|
|
{
|
|
return $this->seoTitle;
|
|
}
|
|
|
|
/**
|
|
* @param string $seoTitle
|
|
*/
|
|
public function setSeoTitle($seoTitle)
|
|
{
|
|
$this->seoTitle = $seoTitle;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @param string $description
|
|
*/
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
}
|
|
}
|