You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
355 B
PHP
24 lines
355 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Kartierung\Repository\ResolutionStrategy;
|
|
|
|
use Kartierung\Attribute\Id;
|
|
|
|
class SimpleEntity
|
|
{
|
|
public string $stringcol;
|
|
|
|
#[Id]
|
|
public int $intcol;
|
|
|
|
public function withStringCol(string $value): self
|
|
{
|
|
$new = new self();
|
|
$new->stringcol = $value;
|
|
return $new;
|
|
}
|
|
|
|
}
|