| 1 | <?php |
||
| 5 | trait OldAndAttribute |
||
| 6 | { |
||
| 7 | public function old($name = null) |
||
| 15 | |||
| 16 | public function hasOld($name = null) |
||
| 20 | |||
| 21 | public function oldOrDefault($locale = null) |
||
| 34 | |||
| 35 | public function oldOrAttribute($model, $default = null, $locale = null) |
||
| 48 | |||
| 49 | public function getAttribute($model, $locale = null) |
||
| 57 | |||
| 58 | abstract public function getDefault(); |
||
| 61 | } |
||
| 62 |
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.