Mercurial > hg > isophonics-drupal-site
comparison vendor/theseer/tokenizer/tests/_files/test.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php declare(strict_types = 1); | |
2 namespace foo; | |
3 | |
4 class bar { | |
5 const x = 'abc'; | |
6 | |
7 /** @var int */ | |
8 private $y = 1; | |
9 | |
10 public function __construct() { | |
11 // do something | |
12 } | |
13 | |
14 public function getY(): int { | |
15 return $this->y; | |
16 } | |
17 | |
18 public function getSomeX(): string { | |
19 return self::x; | |
20 } | |
21 | |
22 public function some(bar $b): string { | |
23 return $b->getSomeX() . '-def'; | |
24 } | |
25 } |