| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function TableTitle() |
||
| 18 | { |
||
| 19 | $title = $this->i18n_singular_name(); |
||
| 20 | |||
| 21 | if ($this->Order() && $this->Order()->ShippingMethod()->exists()) { |
||
| 22 | $title .= " (".$this->Order()->ShippingMethod()->Name.")"; |
||
| 23 | } |
||
| 24 | |||
| 25 | $this->extend('updateTableTitle', $title); |
||
| 26 | |||
| 27 | return $title; |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: