Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param string $key
- * @return View
- */
- public function __get($key){
- return $this->getView($key);
- }
- $view->foo-> // should populate with methods from View
- ^
- $view->foo->bar->baz-> // should populate with methods from View
- ^
- /**
- * @property View *
- * @property View ...
- * @property View $var,...
- */
- <?php
- /**
- * @property Bar $prop
- */
- class foo {
- }
- class bar {
- public function xyz() {
- }
- public function abc() {
- }
- }
- $x = new foo();
- $x->prop->
- /** @var Viewclass $foo */
- $foo = $x->y->z->view;
- $foo->autoCompleteWorksNow();
Add Comment
Please, Sign In to add comment