/** @return var[][] */ private function targets() { $mirror = new TypeMirror(FixtureHackAnnotations::class, $this->source()); return [[$mirror], [$mirror->constructor()], [$mirror->fields()->named('field')], [$mirror->methods()->named('method')], [$mirror->methods()->named('method')->parameters()->named('param')]]; }
/** @return var[][] */ private function targets($name) { $mirror = new TypeMirror(FixtureHackTypedClass::class, $this->source()); return [[$mirror->fields()->named($name)->type(), 'field'], [$mirror->methods()->named($name)->returns(), 'method'], [$mirror->methods()->named('parameters')->parameters()->named($name)->type(), 'param']]; }