Comment la chaîne de méthode sur un objet nouvellement créé?

Je voudrais savoir si il existe un moyen de la chaîne de méthodes sur un objet nouvellement créé en PHP?

Quelque chose comme:

class Foo {
    public function xyz() { ... return $this; }
}

$my_foo = new Foo()->xyz();

Quelqu'un connais un moyen pour y parvenir?

InformationsquelleAutor aefxx | 2010-02-02