getSomething()-> } } namespace FooNS; use FooNS\SomethingNS\Something; use BarNS\Things\Thing; class Foo { /** * Get something. * * @return Something */ function getSomething() { } /** * Get thing. * * @return Thing */ function getThing() { } function barThis() { } function completeThisGetSomething() { $this->getSomething()-> } function completeThis() { $this-> } }