| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 23 | function setGridFieldUserColumnsFor($gridfielddataclass, $newcolumns) | ||
| 24 |     { | ||
| 25 | $columns = $this->owner->GridFieldUserColumns ? unserialize($this->owner->GridFieldUserColumns) : array(); | ||
| 26 | $columns[$gridfielddataclass] = $newcolumns; | ||
| 27 | $this->owner->GridFieldUserColumns = serialize($columns); | ||
| 28 | $this->owner->write(); | ||
| 29 | } | ||
| 30 | } | ||
| 31 | 
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.