| Conditions | 4 |
| Paths | 4 |
| Total Lines | 28 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 65 | public function setColumn($column) { |
||
| 66 | $this->column = (0 <= $column ? $column : null); |
||
| 67 | return $this; |
||
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Set the dir. |
||
| 72 | * |
||
| 73 | * @param string $dir The dir. |
||
| 74 | * @return DataTablesOrderInterface Returns this order. |
||
| 75 | */ |
||
| 76 | public function setDir($dir) { |
||
| 77 | if (false === in_array($dir, DataTablesOrderHelper::dtDirs())) { |
||
| 78 | $dir = self::DATATABLES_DIR_ASC; |
||
| 79 | } |
||
| 80 | $this->dir = strtoupper($dir); |
||
| 81 | return $this; |
||
| 82 | } |
||
| 83 | |||
| 84 | } |
||
| 85 |