DigiComp.FluidRenderFunctions/Tests/Functional/Fixtures/Domain/Post.php
Ferdinand Kuhl cfcb31c174
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline was successful
ci/woodpecker/push/functional-tests/4 Pipeline was successful
adding augmentations for select and textfield ViewHelpers
2024-06-02 15:36:25 +02:00

43 lines
825 B
PHP

<?php
declare(strict_types=1);
namespace DigiComp\FluidRenderFunctions\Tests\Functional\Fixtures\Domain;
use Neos\Flow\Annotations as Flow;
/**
* @Flow\Entity
*/
class Post
{
/**
* @var string|null
*/
protected ?string $title = null;
/**
* @var \DateTimeImmutable|null
*/
protected ?\DateTimeImmutable $publishedAt = null;
/**
* @param string|null $title
* @param \DateTimeImmutable|null $publishedAt
*/
public function __construct(?string $title, ?\DateTimeImmutable $publishedAt)
{
$this->title = $title;
$this->publishedAt = $publishedAt;
}
public function getTitle(): ?string
{
return $this->title;
}
public function getPublishedAt(): ?\DateTimeImmutable
{
return $this->publishedAt;
}
}