File manager - Edit - /var/www/html/transparencia/vendor/phpdocumentor/reflection/tests/integration/data/PHP84/PropertyHook.php
Back
<?php declare(strict_types=1); class PropertyHook { private bool $modified = false; /** @var string this is my property */ #[Property(new DateTimeImmutable())] public string $example = 'default value' { /** Not sure this works, but it gets */ #[Getter(new DateTimeImmutable())] get { if ($this->modified) { return $this->foo . ' (modified)'; } return $this->foo; } /** Not sure this works, but it sets */ #[Setter(new DateTimeImmutable())] set(string|int $value) { $this->foo = strtolower($value); $this->modified = true; } } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings