File: TestObjectPropertyHook.php

package info (click to toggle)
php-doctrine-collections 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 468 kB
  • sloc: php: 2,800; makefile: 18
file content (14 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

declare(strict_types=1);

namespace Doctrine\Tests\Common\Collections;

class TestObjectPropertyHook
{
    public int|null $fooBar = null {
        get {
            return -$this->fooBar; // a different value
        }
    }
}