annotate vendor/theseer/tokenizer/tests/_files/test.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 1fec387a4317
children
rev   line source
Chris@14 1 <?php declare(strict_types = 1);
Chris@14 2 namespace foo;
Chris@14 3
Chris@14 4 class bar {
Chris@14 5 const x = 'abc';
Chris@14 6
Chris@14 7 /** @var int */
Chris@14 8 private $y = 1;
Chris@14 9
Chris@14 10 public function __construct() {
Chris@14 11 // do something
Chris@14 12 }
Chris@14 13
Chris@14 14 public function getY(): int {
Chris@14 15 return $this->y;
Chris@14 16 }
Chris@14 17
Chris@14 18 public function getSomeX(): string {
Chris@14 19 return self::x;
Chris@14 20 }
Chris@14 21
Chris@14 22 public function some(bar $b): string {
Chris@14 23 return $b->getSomeX() . '-def';
Chris@14 24 }
Chris@14 25 }