Files
typo3-13/packages/ep_theme/Classes/Domain/Model/Page.php
T
frommeandClaude Opus 5.5 ecd5ea66c5 refactor: type declarations via Rector
rector.php gets the typeDeclarations set: return types (void, array,
unions) where the code proves them, typed closures and arrow functions,
typed properties from constructors and assignments in the DTOs.

Skipped: rules that infer scalar or array parameter types from call
sites or docblocks, and the removal of casts the docblocks call
redundant. Values from the database, form input and the import feeds
arrive as strings and would throw instead of being converted (e.g. the
(int) cast of the newsletter list ids stays).

Checked locally: cache warmup, frontend crawl (~1,900 URLs), the
backchannel APIs and the newsletter form validation behave as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 11:21:12 +01:00

101 lines
1.5 KiB
PHP

<?php
declare(strict_types=1);
namespace EP\EpTheme\Domain\Model;
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
class Page extends AbstractEntity
{
#[\Override]
protected ?int $uid = null;
#[\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): void
{
$this->hidden = $hidden;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string $title
*/
public function setTitle($title): void
{
$this->title = $title;
}
/**
* @return string
*/
public function getSeoTitle()
{
return $this->seoTitle;
}
/**
* @param string $seoTitle
*/
public function setSeoTitle($seoTitle): void
{
$this->seoTitle = $seoTitle;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string $description
*/
public function setDescription($description): void
{
$this->description = $description;
}
}