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.
36 lines
577 B
PHP
36 lines
577 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Kartierung\Sql;
|
|
|
|
class EntityWithThreeAccessMethods
|
|
{
|
|
public int $publicVal;
|
|
|
|
private int $setterVal;
|
|
|
|
private int $witherVal;
|
|
|
|
public function getSetterVal(): int
|
|
{
|
|
return $this->setterVal;
|
|
}
|
|
|
|
public function setSetterVal(int $value): void
|
|
{
|
|
$this->setterVal = $value;
|
|
}
|
|
|
|
public function withWitherVal(int $value): self
|
|
{
|
|
$this->witherVal = $value;
|
|
return $this;
|
|
}
|
|
|
|
public function getWitherVal(): int
|
|
{
|
|
return $this->witherVal;
|
|
}
|
|
}
|