1<?php
2class Foo
3{
4    public function doSomething(Bar $bar)
5    {
6        return $bar->doSomethingElse();
7    }
8}
9