Files
iTop/sources/FormImplementation/Dto/CountDto.php
Benjamin Dalsass 0461cd7d51 N°7063 - Forms SDK - Add Symfony forms component
error forms issue
2024-01-08 16:45:52 +01:00

35 lines
566 B
PHP

<?php
namespace Combodo\iTop\FormImplementation\Dto;
use ArrayAccess;
class CountDto implements ArrayAccess
{
public function __construct(
public int $count1 = 11,
public int $count2 = 22,
public int $count3 = 33,
) {
}
public function offsetExists($offset) : bool
{
return property_exists($this, $offset);
}
public function offsetGet($offset) : mixed
{
return $this->$offset;
}
public function offsetSet($offset, $value) : void
{
$this->$offset = $value;
}
public function offsetUnset($offset) : void
{
unset($this->$offset);
}
}