File: CountingListener.php

package info (click to toggle)
php-zend-eventmanager 3.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 948 kB
  • sloc: php: 3,543; xml: 749; makefile: 17
file content (20 lines) | stat: -rw-r--r-- 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

declare(strict_types=1);

namespace LaminasTest\EventManager\TestAsset;

/**
 * @final This class should not be extended
 */
class CountingListener
{
    public int $count = 0;

    public int $index = 0;

    public function __invoke(): void
    {
        $this->count += 1;
    }
}