Skip to content

Commit 7941406

Browse files
committed
glayzzle#152 - first try
1 parent c7f9e15 commit 7941406

File tree

2 files changed

+409
-0
lines changed

2 files changed

+409
-0
lines changed

test/fixtures/class/keywords.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parser": {
3+
"extractDoc": true,
4+
"php7": true
5+
}
6+
}
7+
<?php
8+
final class foo extends bar implements bim, bam, boum {
9+
const FOO = "azerty";
10+
public static $var;
11+
public function __construct(array $data = null) {
12+
$this->data = $data;
13+
}
14+
const list = "bar";
15+
public function new($foo = self::list) {
16+
return $this::list;
17+
}
18+
protected $foo;
19+
private $bar;
20+
function foobar() {}
21+
}
22+
abstract class bar {
23+
use A, B {
24+
B::smallTalk insteadof A;
25+
A::bigTalk insteadof B, C;
26+
B::bigTalk as public talk;
27+
B::bigTalk as protected talk;
28+
B::bigTalk as private talk;
29+
A::new as list;
30+
list as new;
31+
}
32+
/**
33+
* Some informations
34+
*/
35+
abstract protected function &foo() : bar;
36+
}

0 commit comments

Comments
 (0)