Welcome to mirror list, hosted at ThFree Co, Russian Federation.

class_with_multiple_anonymous_classes_and_functions.php « _fixture « tests « php-token-stream « phpunit « vendor - github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3267ba5617ba23e3ade5a6888e1593cda4c7b80f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
class class_with_multiple_anonymous_classes_and_functions
{
    public function m()
    {
        $c = new class {
            public function n() {
                return true;
            }
        };

        $d = new class {
            public function o() {
                return false;
            }
        };

        $f = function ($a, $b) {
            return $a + $b;
        };

        $g = function ($a, $b) {
            return $a - $b;
        };
    }
}