| 1 | <?php |
||
| 11 | class EcommerceTemplateTest extends Page_Controller |
||
| 12 | { |
||
| 13 | public function index() |
||
| 17 | /** |
||
| 18 | * Goes through all products and find one that |
||
| 19 | * "canPurchase". |
||
| 20 | * |
||
| 21 | * @return Product |
||
| 22 | */ |
||
| 23 | public function RandomProduct() |
||
| 43 | |||
| 44 | public function SubmittedOrder() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * This is used for template-ty stuff. |
||
| 60 | * |
||
| 61 | * @return bool |
||
| 62 | */ |
||
| 63 | public function IsEcommercePage() |
||
| 67 | } |
||
| 68 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.