OOP Learning Mode

Assuming every method call below returns an instance of an object, how can the following be re-written?

<?php
    $a = new MyClass();
    $b = $a->getInstance();
    $c = $b->doSomething();
?>